/// <summary>General factory entrance method which will return an EntityFields object with the format generated by the factory specified</summary>
 /// <param name="relatedEntityType">The type of entity the fields are for</param>
 /// <returns>The IEntityFields instance requested</returns>
 public static IEntityFields CreateEntityFieldsObject(SD.LLBLGen.Pro.Examples.Auditing.EntityType relatedEntityType)
 {
     return(ModelInfoProviderSingleton.GetInstance().GetEntityFields(_entityTypeNamesCache[relatedEntityType], PersistenceInfoProviderSingleton.GetInstance()));
 }
 /// <summary>General method which will return an array of IEntityFieldCore objects, used by the InheritanceInfoProvider. Only the fields defined in the entity are returned, no inherited fields.</summary>
 /// <param name="entityName">the name of the entity to get the fields for. Example: "CustomerEntity"</param>
 /// <returns>array of IEntityFieldCore fields, defined in the entity with the name specified</returns>
 internal static IEntityFieldCore[] CreateFields(string entityName)
 {
     return(ModelInfoProviderSingleton.GetInstance().GetEntityFieldsArray(entityName, PersistenceInfoProviderSingleton.GetInstance()));
 }
Esempio n. 3
0
 /// <summary>General factory entrance method which will return an EntityFields object with the format generated by the factory specified</summary>
 /// <param name="relatedEntityType">The type of entity the fields are for</param>
 /// <returns>The IEntityFields instance requested</returns>
 public static IEntityFields CreateEntityFieldsObject(ProductSearchEngine.EntityType relatedEntityType)
 {
     return(FieldInfoProviderSingleton.GetInstance().GetEntityFields(InheritanceInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance(), _entityTypeNamesCache[relatedEntityType]));
 }
 /// <summary>General factory entrance method which will return an EntityFields object with the format generated by the factory specified</summary>
 /// <param name="relatedEntityType">The type of entity the fields are for</param>
 /// <returns>The IEntityFields instance requested</returns>
 public static IEntityFields CreateEntityFieldsObject(Northwind.SSDAL.EntityType relatedEntityType)
 {
     return(FieldInfoProviderSingleton.GetInstance().GetEntityFields(InheritanceInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance(), _entityTypeNamesCache[relatedEntityType]));
 }
Esempio n. 5
0
        /// <summary>Creates a new IEntityField instance for usage in the EntityFields object for the entity related to the field index specified.</summary>
        /// <param name="fieldIndex">The field which IEntityField instance should be created</param>
        /// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
        public static IEntityField Create(Enum fieldIndex)
        {
            IFieldInfo info = ModelInfoProviderSingleton.GetInstance().GetFieldInfo(fieldIndex);

            return(new EntityField(info, PersistenceInfoProviderSingleton.GetInstance().GetFieldPersistenceInfo(info.ContainingObjectName, info.Name)));
        }
Esempio n. 6
0
 /// <summary>Creates a new IEntityField instance, which represents the field objectName.fieldName</summary>
 /// <param name="objectName">the name of the object the field belongs to, like CustomerEntity or OrdersTypedView</param>
 /// <param name="fieldName">the name of the field to create</param>
 public static IEntityField Create(string objectName, string fieldName)
 {
     return(new EntityField(ModelInfoProviderSingleton.GetInstance().GetFieldInfo(objectName, fieldName), PersistenceInfoProviderSingleton.GetInstance().GetFieldPersistenceInfo(objectName, fieldName)));
 }
Esempio n. 7
0
 /// <summary>CTor</summary>
 /// <param name="typeOfInheritance">Type of inheritance the entity which owns this Dao is in.</param>
 /// <param name="entityName">Name of the entity owning this Dao</param>
 /// <param name="entityFactory">Entity factory for the entity owning this Dao.</param>
 public CommonDaoBase(InheritanceHierarchyType typeOfInheritance, string entityName, IEntityFactory entityFactory)
     : base(InheritanceInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance(), new DynamicQueryEngine(), typeOfInheritance, entityName, entityFactory)
 {
 }
Esempio n. 8
0
 /// <summary>
 /// CTor. SqlServer specific
 /// </summary>
 /// <param name="connectionString">The connection string to use when connecting to the database.</param>
 /// <param name="keepConnectionOpen">when true, the DataAccessAdapter will not close an opened connection. Use this for multi action usage.</param>
 /// <param name="catalogNameUsageSetting">SqlServer specific. Configures this data access adapter object how to threat catalog names in
 /// persistence information.</param>
 /// <param name="catalogNameToUse">SqlServer specific. The name to use if catalogNameUsageSetting is set to ForceName. Ignored otherwise.</param>
 /// <remarks>For backwards compatibility.</remarks>
 public DataAccessAdapter(string connectionString, bool keepConnectionOpen, CatalogNameUsage catalogNameUsageSetting, string catalogNameToUse) : base(PersistenceInfoProviderSingleton.GetInstance())
 {
     InitClass(connectionString, keepConnectionOpen, catalogNameUsageSetting, catalogNameToUse, null, null);
 }
Esempio n. 9
0
 /// <summary>General factory entrance method which will return an EntityFields object with the format generated by the factory specified</summary>
 /// <param name="relatedEntityType">The type of entity the fields are for</param>
 /// <returns>The IEntityFields instance requested</returns>
 public static IEntityFields CreateEntityFieldsObject(SD.LLBLGen.Pro.Examples.EntityType relatedEntityType)
 {
     return(FieldInfoProviderSingleton.GetInstance().GetEntityFields(InheritanceInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance(), _entityTypeNamesCache[relatedEntityType]));
 }
 /// <summary>General factory entrance method which will return an EntityFields object with the format generated by the factory specified</summary>
 /// <param name="relatedEntityType">The type of entity the fields are for</param>
 /// <returns>The IEntityFields instance requested</returns>
 public static IEntityFields CreateEntityFieldsObject(SquawkTalk.Datalayer.EntityType relatedEntityType)
 {
     return(FieldInfoProviderSingleton.GetInstance().GetEntityFields(InheritanceInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance(), _entityTypeNamesCache[relatedEntityType]));
 }
Esempio n. 11
0
 /// <summary>CTor.</summary>
 /// <param name="connectionString">The connection string to use when connecting to the database.</param>
 /// <param name="keepConnectionOpen">when true, the DataAccessAdapter will not close an opened connection. Use this for multi action usage.</param>
 /// <param name="catalogNameOverwrites"> The from-to name value pairs and setting for the overwriting of catalog names. Can be null.</param>
 /// <param name="schemaNameOverwrites"> The from-to name value pairs and setting for the overwriting of schema names. Can be null.</param>
 public DataAccessAdapter(string connectionString, bool keepConnectionOpen, CatalogNameOverwriteHashtable catalogNameOverwrites, SchemaNameOverwriteHashtable schemaNameOverwrites)
     : base(PersistenceInfoProviderSingleton.GetInstance())
 {
     InitClassPhase2(connectionString, keepConnectionOpen, CatalogNameUsage.Default, SchemaNameUsage.Default, string.Empty, string.Empty, catalogNameOverwrites, schemaNameOverwrites);
 }
Esempio n. 12
0
 /// <summary>CTor</summary>
 /// <param name="connectionString">The connection string to use when connecting to the database.</param>
 /// <param name="keepConnectionOpen">when true, the DataAccessAdapter will not close an opened connection. Use this for multi action usage.</param>
 /// <param name="schemaNameUsageSetting">Configures this data access adapter object how to threat schema names in persistence information.</param>
 /// <param name="schemaNameToUse">Oracle specific. The name to use if schemaNameUsageSetting is set to ForceName. Ignored otherwise.</param>
 public DataAccessAdapter(string connectionString, bool keepConnectionOpen, SchemaNameUsage schemaNameUsageSetting, string schemaNameToUse)
     : base(PersistenceInfoProviderSingleton.GetInstance())
 {
     InitClassPhase2(connectionString, keepConnectionOpen, CatalogNameUsage.Default, schemaNameUsageSetting, string.Empty, schemaNameToUse, null, null);
 }
Esempio n. 13
0
 /// <summary>
 /// CTor
 /// </summary>
 /// <param name="comPlusContextHost">the COM+ context host for this adapter instance.</param>
 /// <param name="connectionString">The connection string to use when connecting to the database.</param>
 /// <remarks>do not call this from your code</remarks>
 public DataAccessAdapter(IComPlusAdapterContext comPlusContextHost, string connectionString) : base(comPlusContextHost, PersistenceInfoProviderSingleton.GetInstance())
 {
     InitClass(connectionString, false, CatalogNameUsage.Default, String.Empty, null, null);
 }
Esempio n. 14
0
        /// <summary>Creates a new IEntityField instance for usage in the EntityFields object for the DeepFryerServiceChangeLogEntity.  Which EntityField is created is specified by fieldIndex</summary>
        /// <param name="fieldIndex">The field which IEntityField instance should be created</param>
        /// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
        public static IEntityField Create(DeepFryerServiceChangeLogFieldIndex fieldIndex)
        {
            IFieldInfo info = FieldInfoProviderSingleton.GetInstance().GetFieldInfo("DeepFryerServiceChangeLogEntity", (int)fieldIndex);

            return(new EntityField(info, PersistenceInfoProviderSingleton.GetInstance().GetFieldPersistenceInfo(info.ContainingObjectName, info.Name)));
        }
 /// <summary>Private CTor for deserialization</summary>
 /// <param name="info"></param>
 /// <param name="context"></param>
 protected WebTrackerEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance());
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
Esempio n. 16
0
        /// <summary>Creates a new IEntityField instance for usage in the EntityFields object for the RecycleVendorEntity.  Which EntityField is created is specified by fieldIndex</summary>
        /// <param name="fieldIndex">The field which IEntityField instance should be created</param>
        /// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
        public static IEntityField Create(RecycleVendorFieldIndex fieldIndex)
        {
            IFieldInfo info = FieldInfoProviderSingleton.GetInstance().GetFieldInfo("RecycleVendorEntity", (int)fieldIndex);

            return(new EntityField(info, PersistenceInfoProviderSingleton.GetInstance().GetFieldPersistenceInfo(info.ContainingObjectName, info.Name)));
        }
Esempio n. 17
0
 /// <summary>
 /// CTor
 /// </summary>
 /// <param name="connectionString">The connection string to use when connecting to the database.</param>
 /// <param name="keepConnectionOpen">when true, the DataAccessAdapter will not close an opened connection. Use this for multi action usage.</param>
 public DataAccessAdapter(string connectionString, bool keepConnectionOpen) : base(PersistenceInfoProviderSingleton.GetInstance())
 {
     InitClass(connectionString, keepConnectionOpen, CatalogNameUsage.Default, String.Empty, null, null);
 }