SHARE
TWEET

Not-Null constraints in POCO Objects

a guest Feb 28th, 2012 10 Never
  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. }
RAW Paste Data
Top