public void Apply(IIdentityPart id)
 {
     id
         .ColumnName("Id")
         .WithUnsavedValue(0)
         .GeneratedBy.Identity();
 }
 public void Apply(IIdentityPart id) {
     id.ColumnName(id.EntityType.Name + "ID");
         // We could include other details, such as those shown below, but the Northwind DB 
         // mixes up assigned Ids, generated Ids, string Ids and int Ids; thus, making it 
         // difficult to put in a single convention for this
         //.WithUnsavedValue(0)
         //.GeneratedBy.Identity();
 }
 public void Apply(IIdentityPart id)
 {
     id.ColumnName(id.EntityType.Name + "ID");
     // We could include other details, such as those shown below, but the Northwind DB
     // mixes up assigned Ids, generated Ids, string Ids and int Ids; thus, making it
     // difficult to put in a single convention for this
     //.WithUnsavedValue(0)
     //.GeneratedBy.Identity();
 }
 public bool Accept(IIdentityPart id)
 {
     return(true);
 }
 public void Apply(IIdentityPart id)
 {
     id.ColumnName("Id")
     .WithUnsavedValue(0)
     .GeneratedBy.Identity();
 }
 public bool Accept(IIdentityPart target)
 {
     return true;
 }
 public void Apply(IIdentityPart target)
 {
     target.ColumnName("Id");
 }
Example #8
0
 public bool Accept(IIdentityPart id)
 {
     return true;
 }
 public void Apply(IIdentityPart target)
 {
     target.ColumnName(target.Property.Name);
 }
 public bool Accept(IIdentityPart target)
 {
     return string.IsNullOrEmpty(target.GetColumnName());
 }
 public void Apply(IIdentityPart id)
 {
     id.GeneratedBy.GuidComb();
 }
 public IdentityGenerationStrategyBuilder(IIdentityPart parent)
 {
     this.parent = parent;
 }
 public void Apply(IIdentityPart target)
 {
     target.SetAttribute("test", "true");
 }
 public void Apply(IIdentityPart id)
 {
     id.GeneratedBy.GuidComb();
 }