18 lines
454 B
C#
18 lines
454 B
C#
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; }
|
|
}
|
|
}
|