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);
        }
Example #3
0
 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));

        }
Example #5
0
        /// <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);
        }
Example #7
0
        public void Apply(IOneToOneInstance instance)
        {
            Type inferredType = ((IOneToOneInspector)instance).Class.GetUnderlyingSystemType();

            instance.LazyLoad();

            instance.Cascade.None();


            Debug.WriteLine("----OneToOneInstance ----" + inferredType);
        }
Example #8
0
 public void Apply(IOneToOneInstance instance)
 {
     instance.Fetch.Join();
 }
 public void Apply(IOneToOneInstance instance)
 {
     instance.LazyLoad(Laziness.Proxy);
 }
 public void Apply(IOneToOneInstance instance)
 {
 }
Example #11
0
 public void Apply(IOneToOneInstance instance)
 {
     DefaultCascade.All();
 }
Example #12
0
 public void Apply(IOneToOneInstance instance)
 {
     instance.ForeignKey(instance.EntityType.Name + "Id");
     instance.Cascade.SaveUpdate();
 }
Example #13
0
		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);
            }
        }
Example #15
0
 public void Apply(IOneToOneInstance instance)
 {
     instance.Access.Field();
 }
Example #16
0
 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);
 }
Example #22
0
 public void Apply(IOneToOneInstance instance)
 {
     // Child is constrained. Parent record must exist
     instance.Constrained();
 }
Example #23
0
 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();
 }
Example #26
0
 public void Apply(IOneToOneInstance instance)
 {
     // Cascade All from Parent to child
     instance.Cascade.All();
 }
Example #27
0
 public virtual void Apply(IOneToOneInstance instance)
 {
 }
Example #28
0
 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);
 }
Example #32
0
 public void Apply(IOneToOneInstance instance)
 {
     instance.Cascade.All();
 }
 public void Apply(IOneToOneInstance instance)
 {
     instance.LazyLoad();
 }
Example #34
0
 public void Apply(IOneToOneInstance instance)
 {
     DefaultCascade.All();
 }
Example #35
0
 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();
 }