/// <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>()); }
/// <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)); }