public void Apply(IOneToManyPart oneToManyPart)
 {
     oneToManyPart.KeyColumnNames.Clear();
     oneToManyPart.KeyColumnNames.Add(oneToManyPart.EntityType.Name + "Fk");
     oneToManyPart.LazyLoad();
     oneToManyPart.Inverse();
     //oneToManyPart.Cache.AsNonStrictReadWrite();
 }
 public void Apply(IOneToManyPart oneToManyPart)
 {
     oneToManyPart.KeyColumnNames.Clear();
     oneToManyPart.KeyColumnNames.Add(oneToManyPart.EntityType.Name + "Id");
     oneToManyPart
         .Inverse()
         .AsBag();
 }
 public bool Accept(IOneToManyPart oneToManyPart)
 {
     return(true);
 }
 public void Apply(IOneToManyPart oneToManyPart)
 {
     oneToManyPart.KeyColumnNames.Clear();
     oneToManyPart.KeyColumnNames.Add(oneToManyPart.EntityType.Name + "ID");
 }
 public void Apply(IOneToManyPart target)
 {
     target.KeyColumnNames.Add("test_column");
     target.WithForeignKeyConstraintName("test_fk");
 }
 public bool Accept(IOneToManyPart target)
 {
     return true;
 }
 public void Apply(IOneToManyPart target)
 {
     target.KeyColumnNames.Add(target.EntityType.Name + "_Id");
 }
 public void Apply(IOneToManyPart target)
 {
     target.KeyColumnNames.Clear();
     target.KeyColumnNames.Add(GetKeyName(null, target.EntityType));
 }
 public bool Accept(IOneToManyPart target)
 {
     return target.KeyColumnNames.List().Count == 0;
 }
示例#10
0
 public bool Accept(IOneToManyPart oneToManyPart)
 {
     return true;
 }
 public void Apply(IOneToManyPart oneToManyPart)
 {
     oneToManyPart.KeyColumnNames.Clear();
     oneToManyPart.KeyColumnNames.Add(oneToManyPart.EntityType.Name + "Fk");
     oneToManyPart.Cascade.All();
 }
 public void Apply(IOneToManyPart target)
 {
     target.Cascade.SaveUpdate().Inverse();
 }
示例#13
0
 public void Apply(IOneToManyPart target)
 {
     target.Cascade.SaveUpdate().Inverse();
 }
 public void Apply(IOneToManyPart target)
 {
     target.KeyColumnNames.Add(target.EntityType.Name + "_Id");
 }
 public void Apply(IOneToManyPart target)
 {
     target.Cascade.All().WithForeignKeyConstraintName("FK__" + target.Member.DeclaringType.Name + "_" + target.Member.Name);
 }