Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Not-Null constraints in POCO Objects

By: a guest on Feb 28th, 2012  |  syntax: None  |  size: 0.21 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }