コード例 #1
0
 /// <summary>
 /// Returns a simple SQL Server connection string to the local machine for the given context type.
 /// </summary>
 /// <typeparam name="TContext"> The type of the context to create a connection string for. </typeparam>
 /// <returns> The connection string. </returns>
 protected static string SimpleConnectionString <TContext>() where TContext : DbContext
 {
     return(ModelHelpers.SimpleConnectionString <TContext>());
 }
コード例 #2
0
 /// <summary>
 /// Returns a simple SQL Server connection string to the local machine with the given database name.
 /// </summary>
 /// <param name="databaseName"> The database name. </param>
 /// <returns> The connection string. </returns>
 protected static string SimpleConnectionString(string databaseName)
 {
     return(ModelHelpers.SimpleConnectionString(databaseName));
 }