public void Setup()
 {
     modification = new UseFieldForAssociationStorage(property => "foo");
     mapping = new CustomerMapping();
     mapping.HasMany(x => x.Orders);
     mapping.HasOne(x => x.Company);
     mapping.BelongsTo(x => x.Company);
     mapping.HasOne(x => x.Company).Storage("baz");
 }
Beispiel #2
0
 public void Setup()
 {
     modification = new UseFieldForAssociationStorage(property => "foo");
     mapping      = new CustomerMapping();
     mapping.HasMany(x => x.Orders);
     mapping.HasOne(x => x.Company);
     mapping.BelongsTo(x => x.Company);
     mapping.HasOne(x => x.Company).Storage("baz");
 }
Beispiel #3
0
 public void Setup()
 {
     modification = new ReplacePascalCaseWithUnderscoreModification();
 }
 public void Setup()
 {
     modification = new ReplacePascalCaseWithUnderscoreModification();
 }
 public void Setup()
 {
     modification = new ChangeUpdateCheckToNever();
 }
Beispiel #6
0
 /// <summary>
 /// Adds a mapping modification that can be used to modify the mapping before the XML document is constructed.
 /// </summary>
 /// <param name="modification">The mapping modification</param>
 public FluentMappingSource AddModification(IMappingModification modification)
 {
     modification.Guard("Cannot pass null to 'AddModification'");
     modifications.Add(modification);
     return(this);
 }
 public void Setup()
 {
     modification = new ChangeUpdateCheckToNever();
 }