Exemplo n.º 1
0
        /// <summary>
        ///     This is an internal API that supports the Entity Framework Core infrastructure and not subject to
        ///     the same compatibility standards as public APIs. It may be changed or removed without notice in
        ///     any release. You should only use it directly in your code with extreme caution and knowing that
        ///     doing so can result in application failures when updating to a new Entity Framework Core release.
        /// </summary>
        public StoreFunction(IRuntimeDbFunction dbFunction, RelationalModel model)
            : base(dbFunction.Name, dbFunction.Schema, model)
        {
            DbFunctions = new SortedDictionary <string, IDbFunction> {
                { dbFunction.ModelName, dbFunction }
            };
            IsBuiltIn  = dbFunction.IsBuiltIn;
            ReturnType = dbFunction.StoreType;

            Parameters = new StoreFunctionParameter[dbFunction.Parameters.Count];
            for (var i = 0; i < dbFunction.Parameters.Count; i++)
            {
                Parameters[i] = new StoreFunctionParameter(this, (IRuntimeDbFunctionParameter)dbFunction.Parameters[i]);
            }

            dbFunction.StoreFunction = this;
        }
Exemplo n.º 2
0
 /// <summary>
 ///     This is an internal API that supports the Entity Framework Core infrastructure and not subject to
 ///     the same compatibility standards as public APIs. It may be changed or removed without notice in
 ///     any release. You should only use it directly in your code with extreme caution and knowing that
 ///     doing so can result in application failures when updating to a new Entity Framework Core release.
 /// </summary>
 public TableBase([NotNull] string name, [CanBeNull] string schema, [NotNull] RelationalModel model)
 {
     Schema = schema;
     Name   = name;
     Model  = model;
 }
Exemplo n.º 3
0
 /// <summary>
 ///     This is an internal API that supports the Entity Framework Core infrastructure and not subject to
 ///     the same compatibility standards as public APIs. It may be changed or removed without notice in
 ///     any release. You should only use it directly in your code with extreme caution and knowing that
 ///     doing so can result in application failures when updating to a new Entity Framework Core release.
 /// </summary>
 public View([NotNull] string name, [CanBeNull] string schema, [NotNull] RelationalModel model)
     : base(name, schema, model)
 {
 }
Exemplo n.º 4
0
 /// <summary>
 ///     This is an internal API that supports the Entity Framework Core infrastructure and not subject to
 ///     the same compatibility standards as public APIs. It may be changed or removed without notice in
 ///     any release. You should only use it directly in your code with extreme caution and knowing that
 ///     doing so can result in application failures when updating to a new Entity Framework Core release.
 /// </summary>
 public View(string name, string?schema, RelationalModel model)
     : base(name, schema, model)
 {
 }
Exemplo n.º 5
0
 public Table([NotNull] string name, [CanBeNull] string?schema, [NotNull] RelationalModel model)
     : base(name, schema, model)
 {
     Columns = new SortedDictionary <string, IColumnBase>(new ColumnNameComparer(this));
 }
Exemplo n.º 6
0
 /// <summary>
 ///     This is an internal API that supports the Entity Framework Core infrastructure and not subject to
 ///     the same compatibility standards as public APIs. It may be changed or removed without notice in
 ///     any release. You should only use it directly in your code with extreme caution and knowing that
 ///     doing so can result in application failures when updating to a new Entity Framework Core release.
 /// </summary>
 public TableBase(string name, string?schema, RelationalModel model)
 {
     Schema = schema;
     Name   = name;
     Model  = model;
 }
Exemplo n.º 7
0
 /// <summary>
 ///     This is an internal API that supports the Entity Framework Core infrastructure and not subject to
 ///     the same compatibility standards as public APIs. It may be changed or removed without notice in
 ///     any release. You should only use it directly in your code with extreme caution and knowing that
 ///     doing so can result in application failures when updating to a new Entity Framework Core release.
 /// </summary>
 public Table(string name, string?schema, RelationalModel model)
     : base(name, schema, model)
 {
     Columns = new SortedDictionary <string, ColumnBase>(new ColumnNameComparer(this));
 }
Exemplo n.º 8
0
 public SqlQuery([NotNull] string name, [NotNull] RelationalModel model, [NotNull] string sql)
     : base(name, null, model)
 {
     Sql = sql;
 }
Exemplo n.º 9
0
 /// <summary>
 ///     This is an internal API that supports the Entity Framework Core infrastructure and not subject to
 ///     the same compatibility standards as public APIs. It may be changed or removed without notice in
 ///     any release. You should only use it directly in your code with extreme caution and knowing that
 ///     doing so can result in application failures when updating to a new Entity Framework Core release.
 /// </summary>
 public SqlQuery(string name, RelationalModel model, string sql)
     : base(name, null, model)
 {
     Sql = sql;
 }