public static void Fetch(this IOneToOneMapper mapper, FetchKind fetchMode) { var o2oMapper = ReflectHelper.CastOrThrow <OneToOneMapper>(mapper, "Setting fetch"); o2oMapper.Fetch(fetchMode); }
protected override void OnBeforeMapOneToOne(IModelInspector modelInspector, PropertyPath member, IOneToOneMapper propertyCustomizer) { propertyCustomizer.ForeignKey(string.Format("FK_{0}_{1}", member.Owner().Name, member.ToColumnName())); }
public static void MapOneToOne(IModelInspector modelInspector, PropertyPath member, IOneToOneMapper map) { }
/// <summary> /// Maps many formulas. /// </summary> /// <param name="mapper">The mapper.</param> /// <param name="formulas">The formulas to map.</param> public static void Formulas(this IOneToOneMapper mapper, params string[] formulas) { var o2oMapper = ReflectHelper.CastOrThrow <OneToOneMapper>(mapper, "Setting many formula"); o2oMapper.Formulas(formulas); }
private void DefaultMapOneToOne(IModelInspector inspector, PropertyPath member, IOneToOneMapper mapper) { }
public void InvokeCustomizers(PropertyPath member, IOneToOneMapper mapper) { InvokeCustomizers(oneToOneCustomizers, member, mapper); }
protected virtual void OnBeforeMapOneToOne(IModelInspector modelInspector, PropertyPath member, IOneToOneMapper propertyCustomizer) { }
protected virtual void OnAfterMapOneToOne(IModelInspector modelInspector, PropertyPath member, IOneToOneMapper propertyCustomizer) { }