////////////////////////////////////////////////////////////// // This code was generated by LLBLGen Pro 5.7. ////////////////////////////////////////////////////////////// // Code is generated on: // Code is generated using templates: SD.TemplateBindings.SharedTemplates // Templates vendor: Solutions Design. ////////////////////////////////////////////////////////////// using System; using Datalib.HelperClasses; using SD.LLBLGen.Pro.ORMSupportClasses; namespace Datalib.FactoryClasses { /// Factory class for IEntityField2 instances, used in IEntityFields2 instances. For backwards compatibility public static partial class EntityFieldFactory { /// Creates a new IEntityField2 instance for usage in the EntityFields object for the entity related to the field index specified. /// The field which IEntityField2 instance should be created /// The IEntityField2 instance for the field specified in fieldIndex public static IEntityField2 Create(Enum fieldIndex) { return new EntityField2(ModelInfoProviderSingleton.GetInstance().GetFieldInfo(fieldIndex)); } /// Creates a new IEntityField2 instance, which represents the field objectName.fieldName /// the name of the object the field belongs to, like CustomerEntity or OrdersTypedView /// the name of the field to create public static IEntityField2 Create(string objectName, string fieldName) { return new EntityField2(ModelInfoProviderSingleton.GetInstance().GetFieldInfo(objectName, fieldName)); } } }