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"); }
public void Setup() { modification = new ReplacePascalCaseWithUnderscoreModification(); }
public void Setup() { modification = new ChangeUpdateCheckToNever(); }
/// <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); }