CreateTableOperation Constructor
Initializes a new instance of the CreateTableOperation class.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | CreateTableOperation(String, IDictionary<String, Object>, Object) | Initializes a new instance of the CreateTableOperation class. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc. |
![]() | CreateTableOperation(String, Object) | Initializes a new instance of the CreateTableOperation class. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc. |
CreateTableOperation Constructor (String, IDictionary<String, Object>, Object)
Initializes a new instance of the CreateTableOperation class. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.
[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")] public CreateTableOperation( string name, IDictionary<string, object> annotations, object anonymousArguments = null )
Parameters
- name
-
Type:
System.String
Name of the table to be created.
- annotations
-
Type:
System.Collections.Generic.IDictionary<String, Object>
Custom annotations that exist on the table to be created. May be null or empty.
- anonymousArguments
-
Type:
System.Object
Additional arguments that may be processed by providers. Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'.
CreateTableOperation Constructor (String, Object)
Initializes a new instance of the CreateTableOperation class. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.
[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")] public CreateTableOperation( string name, object anonymousArguments = null )
Parameters
- name
-
Type:
System.String
Name of the table to be created.
- anonymousArguments
-
Type:
System.Object
Additional arguments that may be processed by providers. Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'.