MongoServices 0.2.0
A Service/Repository Framework for mongoDB
C:/Development/MongoServices/Source/MongoServices/Models/MongoServicesModel.cs
Go to the documentation of this file.
00001 using System;
00002 using System.Collections.Generic;
00003 using System.Linq;
00004 using System.Text;
00005 using MongoDB.Bson;
00006 using MongoDB.Bson.Serialization.Attributes;
00007 
00008 namespace MongoServices
00009 {
00013         public abstract partial class MongoServicesModel
00014         {
00015                 #region Public Properties
00016 
00017 
00018 
00019                 public ObjectId Id { get; set; }
00020 
00024                 public DateTime DateCreated { get; internal set; }
00025 
00029                 public DateTime DateModified { get; internal set; }
00030 
00035                 [BsonIgnore]
00036                 public bool MarkedForDelete { get; private set; }
00037                 #endregion
00038 
00039                 #region Public Methods
00040 
00041 
00042 
00043 
00044                 public void MarkForDelete()
00045                 {
00046                         MarkedForDelete = true;
00047                 }
00048 
00053                 public void UnmarkForDelete()
00054                 {
00055                         MarkedForDelete = false;
00056                 }
00057                 #endregion
00058         }
00059 }
 All Classes Namespaces Files Functions Enumerations Properties