コード例 #1
0
ファイル: QueryPlain.cs プロジェクト: GISwilson/Drikka
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="mapping">Mappings</param>
 /// <param name="queryTranslator">Query translator</param>
 /// <param name="typeRegister">Type Register</param>
 public QueryPlan(IMapping mapping, IQueryTranslator queryTranslator, ITypeRegister typeRegister)
 {
     this._mapping         = mapping;
     this._query           = CreateQueryHeader();
     this._queryTranslator = queryTranslator;
     this._typeRegister    = typeRegister;
 }
コード例 #2
0
 public GenerateProvider(IApiResolver apiResolver, IApiSerializer apiSerializer, ITypeRegister typeRegister, IXmlDocmentationReader xmlDocmentationReader)
 {
     ApiResolver           = apiResolver;
     ApiSerializer         = apiSerializer;
     TypeRegister          = typeRegister;
     XmlDocmentationReader = xmlDocmentationReader;
 }
コード例 #3
0
 public ApiResolver(IApiExplorer apiExplorer, JsonSerializerSettings jsonSerializerSettings, ApiExplorerGeneratorOptions options, ITypeRegister typeRegister, IXmlDocmentationReader xmlDocmentationReader)
 {
     this.apiExplorer           = apiExplorer;
     this.toCamelCase           = jsonSerializerSettings.Converters.OfType <StringEnumConverter>().FirstOrDefault()?.CamelCaseText ?? true;
     this.options               = options;
     this.typeRegister          = typeRegister;
     this.xmlDocmentationReader = xmlDocmentationReader;
 }
コード例 #4
0
 public ApiResolver(IApiDescriptionGroupCollectionProvider apiDescriptionGroupCollectionProvider, IOptions <MvcJsonOptions> mvcJsonOptions, IOptions <ApiExplorerGeneratorOptions> options, ITypeRegister typeRegister, IXmlDocmentationReader xmlDocmentationReader)
 {
     this.apiDescriptionGroupCollectionProvider = apiDescriptionGroupCollectionProvider;
     this.toCamelCase           = mvcJsonOptions?.Value.SerializerSettings.Converters.OfType <StringEnumConverter>().FirstOrDefault()?.CamelCaseText ?? true;
     this.options               = options?.Value;
     this.typeRegister          = typeRegister;
     this.xmlDocmentationReader = xmlDocmentationReader;
 }
コード例 #5
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="dataProvider">DataProvider</param>
        /// <param name="planManager">Execute plan Manager</param>
        /// <param name="bindManager">Bind Manager</param>
        /// <param name="mappingManager">Mapping Manager</param>
        /// <param name="typeRegister">Types register</param>
        public GenericDomainsRepository(IDataProvider dataProvider, IExecutionPlanManager planManager,
                                        IBindManager bindManager, IMappingManager mappingManager,
                                        ITypeRegister typeRegister)
        {
            this._dataProvider   = dataProvider;
            this._planManager    = planManager;
            this._bindManager    = bindManager;
            this._mappingManager = mappingManager;
            this._typeRegister   = typeRegister;

            this._mapedType = this._mappingManager.GetMapping(typeof(T));
        }
コード例 #6
0
 public BindManager(IMappingManager mappingManager, ITypeRegister typeRegister)
 {
     this._mappingManager = mappingManager;
     this._typeRegister   = typeRegister;
 }
コード例 #7
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="mappingManager">Mapping Manager</param>
 /// <param name="typeRegister">Types Register</param>
 /// <param name="queryTranslator">Query translator</param>
 public ExecutionPlanManager(IMappingManager mappingManager, ITypeRegister typeRegister, IQueryTranslator queryTranslator)
 {
     this._mappingManager  = mappingManager;
     this._typeRegister    = typeRegister;
     this._queryTranslator = queryTranslator;
 }
コード例 #8
0
ファイル: BindManager.cs プロジェクト: BrunoCaimar/Drikka
 public BindManager(IMappingManager mappingManager, ITypeRegister typeRegister)
 {
     this._mappingManager = mappingManager;
     this._typeRegister = typeRegister;
 }
コード例 #9
0
ファイル: UpdatePlan.cs プロジェクト: BrunoCaimar/Drikka
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="mapping">Type mapping</param>
 /// <param name="typeRegister">Container</param>
 public UpdatePlan(IMapping mapping, ITypeRegister typeRegister)
 {
     this._mapping = mapping;
     this._typeRegister = typeRegister;
     this._text = this.GetUpdateText();
 }
コード例 #10
0
ファイル: ObjectBinder.cs プロジェクト: BrunoCaimar/Drikka
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="mapping">Mappings</param>
 /// <param name="typeRegister">Types Register</param>
 public ObjectBinder(IMapping mapping, ITypeRegister typeRegister)
 {
     this._mapping = mapping;
     this._typesRegister = typeRegister;
 }
コード例 #11
0
ファイル: TypeResolver.cs プロジェクト: bverburg/Schema2Code
 public TypeResolver(ITypeRegister typeRegister, AbstractTypeNameResolver typeNameResolver,IMappingEngine mappingEngine)
     : base(typeRegister, typeNameResolver, mappingEngine)
 {
 }
コード例 #12
0
ファイル: BasicTypesMap.cs プロジェクト: BrunoCaimar/Drikka
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="typeRegister">Register</param>
 /// <param name="geometryFactory">Geometry Factory</param>
 public BasicTypesMap(ITypeRegister typeRegister, IGeometryFactory geometryFactory)
 {
     this._typeRegister = typeRegister;
     this._geometryFactory = geometryFactory;
 }
コード例 #13
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="mappingManager">Mapping Manager</param>
 /// <param name="typeRegister">Types Register</param>
 /// <param name="queryTranslator">Query translator</param>
 public ExecutionPlanManager(IMappingManager mappingManager, ITypeRegister typeRegister, IQueryTranslator queryTranslator)
 {
     this._mappingManager = mappingManager;
     this._typeRegister = typeRegister;
     this._queryTranslator = queryTranslator;
 }
コード例 #14
0
ファイル: UpdatePlan.cs プロジェクト: GISwilson/Drikka
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="mapping">Type mapping</param>
 /// <param name="typeRegister">Container</param>
 public UpdatePlan(IMapping mapping, ITypeRegister typeRegister)
 {
     this._mapping      = mapping;
     this._typeRegister = typeRegister;
     this._text         = this.GetUpdateText();
 }
コード例 #15
0
ファイル: InsertPlan.cs プロジェクト: GISwilson/Drikka
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="mapping">Type mapping</param>
 /// <param name="typeRegister">Container</param>
 public InsertPlan(IMapping mapping, ITypeRegister typeRegister)
 {
     this._mapping      = mapping;
     this._typeRegister = typeRegister;
     this._text         = this.GetInsertText();
 }
コード例 #16
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="mapping">Mappings</param>
 /// <param name="typeRegister">Types Register</param>
 public ObjectBinder(IMapping mapping, ITypeRegister typeRegister)
 {
     this._mapping       = mapping;
     this._typesRegister = typeRegister;
 }
コード例 #17
0
ファイル: InsertPlan.cs プロジェクト: BrunoCaimar/Drikka
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="mapping">Type mapping</param>
 /// <param name="typeRegister">Container</param>
 public InsertPlan(IMapping mapping, ITypeRegister typeRegister)
 {
     this._mapping = mapping;
     this._typeRegister = typeRegister;
     this._text = this.GetInsertText();
 }
コード例 #18
0
ファイル: BasicTypesMap.cs プロジェクト: GISwilson/Drikka
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="typeRegister">Register</param>
 /// <param name="geometryFactory">Geometry Factory</param>
 public BasicTypesMap(ITypeRegister typeRegister, IGeometryFactory geometryFactory)
 {
     this._typeRegister    = typeRegister;
     this._geometryFactory = geometryFactory;
 }