public void Apply(IClassInstance instance) { instance.LazyLoad(); var typeName = instance.EntityType.Name; var pluralTableName = Inflector.Inflector.Pluralize(typeName); instance.Table(pluralTableName); }
/// <summary> /// Apply changes to the target /// </summary> public virtual void Apply(IClassInstance instance) { if(Options.DefaultLazy) instance.LazyLoad(); if(Options.DynamicInsert) instance.DynamicInsert(); if(Options.DynamicUpdate) instance.DynamicUpdate(); }
/// <summary> /// Apply changes to the target /// </summary> public virtual void Apply(IClassInstance instance) { if (Options.DefaultLazy) { instance.LazyLoad(); } if (Options.DynamicInsert) { instance.DynamicInsert(); } if (Options.DynamicUpdate) { instance.DynamicUpdate(); } }
public void Apply(IClassInstance instance) { instance.Table(string.Format("TBL_{0}", instance.EntityType.Name.ToUpper())); instance.LazyLoad(); }