ParameterBuilder.Geometry(DbGeometry, String, String, String, Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建新的参数定义以传递几何图形数据。
实体框架迁移 API 不设计为接受不受信任的源 ((例如应用程序的最终用户) )提供的输入。 如果从此类源接受输入,则应在传递到这些 API 之前对其进行验证,以防止 SQL 注入攻击等。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
public System.Data.Entity.Migrations.Model.ParameterModel Geometry (System.Data.Entity.Spatial.DbGeometry defaultValue = null, string defaultValueSql = null, string name = null, string storeType = null, bool outParameter = false);
member this.Geometry : System.Data.Entity.Spatial.DbGeometry * string * string * string * bool -> System.Data.Entity.Migrations.Model.ParameterModel
Public Function Geometry (Optional defaultValue As DbGeometry = null, Optional defaultValueSql As String = null, Optional name As String = null, Optional storeType As String = null, Optional outParameter As Boolean = false) As ParameterModel
参数
- defaultValue
- DbGeometry
用作此参数默认值的常量值。
- defaultValueSql
- String
用作此参数的默认值的 SQL 表达式。
- name
- String
参数的名称。
- storeType
- String
要用于此参数的提供程序特定数据类型。
- outParameter
- Boolean
一个值,该值指示参数是否为输出参数。
返回
新构造的参数定义。
- 属性