public void Apply(IOneToOneInstance instance) { var oneToOne = instance as IOneToOneInspector; var fkName = GetFkName($"FK_{instance.EntityType.Name}_{instance.Name}"); instance.ForeignKey(fkName); }
public void Apply(IOneToOneInstance instance) { var oneToOne = instance as IOneToOneInspector; var fkName = $"FK_{instance.EntityType.Name}To{oneToOne.Class.Name}_{instance.Name}"; instance.ForeignKey(fkName); }
public void Apply(IOneToOneInstance instance) { instance.ForeignKey(string.Format("FK_{0}_{1}_{2}ID", instance.Name.CleanBaseClassName(), instance.EntityType.Name.CleanBaseClassName(), instance.Name.CleanBaseClassName())); }
public void Apply(IOneToOneInstance instance) { instance.PropertyRef(string.Format("HasOnePro_{0}_{1}", instance.Name, instance.EntityType.Name)); instance.ForeignKey(string.Format("HasOne_{0}_{1}", instance.Name, instance.EntityType.Name)); }
/// <summary> /// Apply changes to the target /// </summary> public void Apply(IOneToOneInstance instance) { Type inferredType = ((IOneToOneInspector)instance).Class.GetUnderlyingSystemType(); Type persistentType = _mapProxyInterfaceTypeToPersistentType(inferredType); if (persistentType != null) { instance.OverrideInferredClass(persistentType); } }
public void Apply(IOneToOneInstance instance) { Type inferredType = ((IOneToOneInspector)instance).Class.GetUnderlyingSystemType(); instance.LazyLoad(); instance.Cascade.None(); Debug.WriteLine("----OneToOneInstance ----" + inferredType); }
public void Apply(IOneToOneInstance instance) { Type inferredType = ((IOneToOneInspector)instance).Class.GetUnderlyingSystemType(); instance.LazyLoad(); instance.Cascade.None(); Debug.WriteLine("----OneToOneInstance ----" + inferredType); }
public void Apply(IOneToOneInstance instance) { instance.Fetch.Join(); }
public void Apply(IOneToOneInstance instance) { instance.LazyLoad(Laziness.Proxy); }
public void Apply(IOneToOneInstance instance) { }
public void Apply(IOneToOneInstance instance) { DefaultCascade.All(); }
public void Apply(IOneToOneInstance instance) { instance.ForeignKey(instance.EntityType.Name + "Id"); instance.Cascade.SaveUpdate(); }
public void Apply(IOneToOneInstance instance) { instance.Fetch.Join(); }
/// <summary> /// Apply changes to the target /// </summary> public void Apply(IOneToOneInstance instance) { Type inferredType = ((IOneToOneInspector)instance).Class.GetUnderlyingSystemType(); Type persistentType = _mapProxyInterfaceTypeToPersistentType(inferredType); if(persistentType != null) { instance.OverrideInferredClass(persistentType); } }
public void Apply(IOneToOneInstance instance) { instance.Access.Field(); }
public void Apply(IOneToOneInstance instance) { instance.Not.LazyLoad(); instance.Fetch.Join(); }
public virtual void Apply(IOneToOneInstance instance) { Apply(instance.EntityType, instance.Name, instance.Access); }
/// <summary> /// Applies the IOneToOneInstance instance. /// </summary> /// <param name="instance">The instance.</param> /// <exception cref="System.NotImplementedException"></exception> public void Apply(IOneToOneInstance instance) => instance.ForeignKey(GetForeignConstraintName(instance.EntityType.Name, instance.Name));
public bool Accept(IOneToOneInstance instance) { return true; }
public void Apply(IOneToOneInstance instance) { instance.Fetch.Select(); }
public virtual void Apply(IOneToOneInstance instance) { Apply(instance.EntityType, instance.Name, instance.Access); }
public void Apply(IOneToOneInstance instance) { // Child is constrained. Parent record must exist instance.Constrained(); }
public void Apply(IOneToOneInstance instance) { instance.Cascade.SaveUpdate(); }
public void Apply(IOneToOneInstance instance) { instance.LazyLoad(Laziness.Proxy); }
public void Apply(IOneToOneInstance instance) { instance.Cascade.All(); }
public void Apply(IOneToOneInstance instance) { // Cascade All from Parent to child instance.Cascade.All(); }
public virtual void Apply(IOneToOneInstance instance) { }
public void Apply(IOneToOneInstance instance) { }
public void Apply(IOneToOneInstance instance) { instance.ForeignKey($"FK_{instance.Name}_{instance.EntityType.Name}"); }
public void Apply(IOneToOneInstance instance) { instance.Fetch.Select(); }
public bool Accept(IOneToOneInstance instance) { return(true); }
public void Apply(IOneToOneInstance instance) { instance.Cascade.All(); }
public void Apply(IOneToOneInstance instance) { instance.LazyLoad(); }
public void Apply(IOneToOneInstance instance) { DefaultCascade.All(); }
public void Apply(IOneToOneInstance instance) { instance.Not.LazyLoad(); }
public void Apply(IOneToOneInstance instance) { instance.ForeignKey(string.Format("{0}_{1}_FK", instance.Name, instance.EntityType.Name)); }
public void Apply(IOneToOneInstance instance) { instance.Cascade.SaveUpdate(); }
public void Apply(IOneToOneInstance instance) { instance.ForeignKey($"FK_{instance.EntityType.Name}_To_{instance.Name}"); }
public void Apply(IOneToOneInstance instance) { instance.Cascade.Delete(); }