/// <summary> /// Returns a simple SQL Server connection string to the local machine using attached database /// for the given context type. /// </summary> /// <typeparam name="TContext"> The type of the context to create a connection string for. </typeparam> /// <param name="useInitialCatalog"> /// Specifies whether the InitialCatalog should be created from the context name. /// </param> /// <returns> The connection string. </returns> protected static string SimpleAttachConnectionString <TContext>(bool useInitialCatalog = true) where TContext : DbContext { return(ModelHelpers.SimpleAttachConnectionString <TContext>(useInitialCatalog)); }
/// <summary> /// Returns a simple SQL Server connection string to the local machine using attached database 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 SimpleAttachConnectionString <TContext>() where TContext : DbContext { return(ModelHelpers.SimpleAttachConnectionString <TContext>()); }