Guest User

Not-Null constraints in POCO Objects

a guest
Feb 28th, 2012
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. public class DomainObject{
  2. private string nnp;
  3. protected DomainObject(){}
  4. public DomainObject(string nnp){
  5. this.nnp = nnp;
  6. }
  7. public string NotNullProp {get {return nnp;}}
  8. public string NullableProp {get;set;}
  9. }
Add Comment
Please, Sign In to add comment