public void GenericDatabaseThrowsWhenAskedToDeriveParameters() { Database db = new GenericDatabase(String.Format(@"server={0};database=Northwind;Integrated Security=true", ConfigurationManager.AppSettings["SqlServerDatabaseInstance"]), SqlClientFactory.Instance); DbCommand storedProcedure = db.GetStoredProcCommand("CustOrdersOrders"); db.DiscoverParameters(storedProcedure); }
public void GenericDatabaseThrowsWhenAskedToDeriveParameters() { Database db = new GenericDatabase(@"server=(localdb)\v11.0;database=Northwind;Integrated Security=true", SqlClientFactory.Instance); DbCommand storedProcedure = db.GetStoredProcCommand("CustOrdersOrders"); db.DiscoverParameters(storedProcedure); }
public void GenericDatabaseThrowsWhenAskedToDeriveParameters() { Database db = new GenericDatabase(@"server=(local)\SQLEXPRESS;database=Northwind;Integrated Security=true", SqlClientFactory.Instance); DbCommand storedProcedure = db.GetStoredProcCommand("CustOrdersOrders"); db.DiscoverParameters(storedProcedure); }