예제 #1
0
        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()));
 }
예제 #3
0
 public static void MapOneToOne(IModelInspector modelInspector, PropertyPath member, IOneToOneMapper map)
 {
 }
예제 #4
0
        /// <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);
        }
예제 #5
0
 private void DefaultMapOneToOne(IModelInspector inspector, PropertyPath member, IOneToOneMapper mapper)
 {
 }
예제 #6
0
 public void InvokeCustomizers(PropertyPath member, IOneToOneMapper mapper)
 {
     InvokeCustomizers(oneToOneCustomizers, member, mapper);
 }
 protected virtual void OnBeforeMapOneToOne(IModelInspector modelInspector, PropertyPath member, IOneToOneMapper propertyCustomizer)
 {
 }
예제 #8
0
 protected virtual void OnAfterMapOneToOne(IModelInspector modelInspector, PropertyPath member, IOneToOneMapper propertyCustomizer)
 {
 }
 protected override void OnBeforeMapOneToOne(IModelInspector modelInspector, PropertyPath member, IOneToOneMapper propertyCustomizer)
 {
     propertyCustomizer.ForeignKey(string.Format("FK_{0}_{1}", member.Owner().Name, member.ToColumnName()));
 }