你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MongoDomainManager<TData> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
MongoDomainManager<TData>(String, String, String, HttpRequestMessage, ApiServices)
创建 MongoDomainManager<TData> 的新实例
public MongoDomainManager (string connectionStringName, string databaseName, string collectionName, System.Net.Http.HttpRequestMessage request, Microsoft.WindowsAzure.Mobile.Service.ApiServices services);
new Microsoft.WindowsAzure.Mobile.Service.MongoDomainManager<'Data (requires 'Data : null and 'Data :> Microsoft.WindowsAzure.Mobile.Service.Tables.ITableData)> : string * string * string * System.Net.Http.HttpRequestMessage * Microsoft.WindowsAzure.Mobile.Service.ApiServices -> Microsoft.WindowsAzure.Mobile.Service.MongoDomainManager<'Data (requires 'Data : null and 'Data :> Microsoft.WindowsAzure.Mobile.Service.Tables.ITableData)>
Public Sub New (connectionStringName As String, databaseName As String, collectionName As String, request As HttpRequestMessage, services As ApiServices)
参数
- connectionStringName
- String
Mongo 数据库的连接字符串的名称
- databaseName
- String
Mongo 数据库的名称
- collectionName
- String
Mongo 集合的名称
- request
- HttpRequestMessage
的一个实例。HttpRequestMessage
- services
- ApiServices
的一个实例。ApiServices
适用于
MongoDomainManager<TData>(String, String, String, HttpRequestMessage, ApiServices, Boolean)
创建 MongoDomainManager<TData> 的新实例
public MongoDomainManager (string connectionStringName, string databaseName, string collectionName, System.Net.Http.HttpRequestMessage request, Microsoft.WindowsAzure.Mobile.Service.ApiServices services, bool enableSoftDelete);
new Microsoft.WindowsAzure.Mobile.Service.MongoDomainManager<'Data (requires 'Data : null and 'Data :> Microsoft.WindowsAzure.Mobile.Service.Tables.ITableData)> : string * string * string * System.Net.Http.HttpRequestMessage * Microsoft.WindowsAzure.Mobile.Service.ApiServices * bool -> Microsoft.WindowsAzure.Mobile.Service.MongoDomainManager<'Data (requires 'Data : null and 'Data :> Microsoft.WindowsAzure.Mobile.Service.Tables.ITableData)>
Public Sub New (connectionStringName As String, databaseName As String, collectionName As String, request As HttpRequestMessage, services As ApiServices, enableSoftDelete As Boolean)
参数
- connectionStringName
- String
Mongo 数据库的连接字符串的名称
- databaseName
- String
Mongo 数据库的名称
- collectionName
- String
Mongo 集合的名称
- request
- HttpRequestMessage
的一个实例。HttpRequestMessage
- services
- ApiServices
的一个实例。ApiServices
- enableSoftDelete
- Boolean
确定是硬删除行还是标记为已删除。