public bool Accept(IManyToOnePart manyToOnePart) {
     return true;
 }
 /// <summary>
 /// Apply changes to the target
 /// </summary>
 /// <param name="target">Instance to apply changes to</param>
 public void Apply(IManyToOnePart target)
 {
     target.ColumnName("test_column");
 }
 public void Apply(IManyToOnePart manyToOnePart) {
     manyToOnePart.ColumnName(manyToOnePart.Property.Name + "Fk");
 }
 public void Apply(IManyToOnePart target)
 {
     target.Cascade.SaveUpdate();
 }
 /// <summary>
 /// Whether this convention will be applied to the target.
 /// </summary>
 /// <param name="target">Instace that could be supplied</param>
 /// <returns>Apply on this target?</returns>
 public bool Accept(IManyToOnePart target)
 {
     return true;
 }
 public bool Accept(IManyToOnePart target)
 {
     return string.IsNullOrEmpty(target.GetColumnName());
 }
 public void Apply(IManyToOnePart target)
 {
     target.ColumnName(GetKeyName(target.Property, target.Property.PropertyType));
 }
 public void Apply(IManyToOnePart target)
 {
 }
 public void Apply(IManyToOnePart manyToOnePart)
 {
     manyToOnePart.ColumnName(manyToOnePart.Property.Name + "Fk");
     manyToOnePart.Cascade.SaveUpdate();
 }
Beispiel #10
0
 public bool Accept(IManyToOnePart target)
 {
     return(true);
 }
Beispiel #11
0
 public void Apply(IManyToOnePart target)
 {
     target.Cascade.SaveUpdate();
 }
Beispiel #12
0
 public void Apply(IManyToOnePart manyToOnePart)
 {
     manyToOnePart.ColumnName(manyToOnePart.Property.Name + "Fk");
 }