Created
March 20, 2012 03:35
-
-
Save tkellogg/2130909 to your computer and use it in GitHub Desktop.
Basic object model for mongo-nhibernate abstract data layer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class DomainObject : IDomainObject | |
{ | |
public virtual object Id { get; set; } | |
#region Overloads of Equals & GetHashCode | |
// ... | |
#endregion | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class User : DomainObject | |
{ | |
public virtual string Email { get; set; } | |
public virtual Name Name { get; set; } | |
} | |
public class Name : DomainObject | |
{ | |
public virtual string First { get; set; } | |
public virtual string Last { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment