dotnet-object-storage/PoweredSoft.ObjectStorage.MongoDB.Tests/Mock/Dal/Contact.cs

18 lines
454 B
C#
Raw Normal View History

2019-02-12 17:39:16 -05:00
using System;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace PoweredSoft.ObjectStorage.MongoDB.Tests.Mock.Dal
{
[MongoCollection("contacts")]
public class Contact
{
[BsonId, BsonElement("id")]
public ObjectId Id { get; set; }
[BsonElement("firstName")]
public string FirstName { get; set; }
[BsonElement("lastName")]
public string LastName { get; set; }
}
}