コード例 #1
0
 /// <summary>
 /// Creates an instance of a database of type <see cref="RelationalStorage"/>.
 /// </summary>
 /// <param name="invariantName">The invariant name of the connector for this database.</param>
 /// <param name="connectionString">The connection string this database should use for database operations.</param>
 private RelationalStorage(string invariantName, string connectionString)
 {
     this.connectionString             = connectionString;
     this.invariantName                = invariantName;
     supportsCommandCancellation       = DbConstantsStore.SupportsCommandCancellation(InvariantName);
     isSynchronousAdoNetImplementation = DbConstantsStore.IsSynchronousAdoNetImplementation(InvariantName);
 }
コード例 #2
0
 /// <summary>
 /// Creates an instance of a database of type <see cref="RelationalStorage"/>.
 /// </summary>
 /// <param name="invariantName">The invariant name of the connector for this database.</param>
 /// <param name="connectionString">The connection string this database should use for database operations.</param>
 private RelationalStorage(string invariantName, string connectionString)
 {
     //These are private, read-only variables (with a property accessor).
     this.connectionString             = connectionString;
     this.invariantName                = invariantName;
     supportsCommandCancellation       = DbConstantsStore.SupportsCommandCancellation(InvariantName);
     isSynchronousAdoNetImplementation = DbConstantsStore.IsSynchronousAdoNetImplementation(InvariantName);
 }