Beispiel #1
0
        public override DataModelProvider <ModelType> CreateDataProvider <ModelType>()
        {
            DataModelProvider <ModelType> dataProvider = base.CreateDataProvider <ModelType>();

            if (dataProvider == null)
            {
                EIMDbContext context = this.CreateDbContext("CreateDataProviderByModelType");
                dataProvider = this.CreateDefaultDataProvider <ModelType>(context);
            }

            return(dataProvider);
        }
        public virtual DataModelProvider <ModelType> CreateDataProvider <ModelType>() where ModelType : class
        {
            DataModelProvider <ModelType> dataProvider = this.CreateSubclassDataProvider <DataModelProvider <ModelType> >();

            return(dataProvider);
        }