/////////////////////////////////////////////////////////////// // This is generated code. ////////////////////////////////////////////////////////////// // Code is generated using LLBLGen Pro version: 4.2 // Code is generated on: // Code is generated using templates: SD.TemplateBindings.SharedTemplates // Templates vendor: Solutions Design. // Templates version: ////////////////////////////////////////////////////////////// using System; using Datalib; using Datalib.HelperClasses; using SD.LLBLGen.Pro.ORMSupportClasses; namespace Datalib.FactoryClasses { /// Factory class for IEntityField2 instances, used in IEntityFields2 instances. 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(FieldInfoProviderSingleton.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(FieldInfoProviderSingleton.GetInstance().GetFieldInfo(objectName, fieldName)); } #region Included Code #endregion } }