Created a "login" dialog form to grab the server name from the user. Now a valid connection must be made before the Main form loads.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using AdvertsingProfitControl.Properties;
|
||||
|
||||
namespace AdvertsingProfitControl
|
||||
{
|
||||
using System;
|
||||
@@ -8,7 +10,7 @@ namespace AdvertsingProfitControl
|
||||
public partial class AdvertisingProfitControlModel : DbContext
|
||||
{
|
||||
public AdvertisingProfitControlModel()
|
||||
: base("name=AdvertisingProfitControlDbContext")
|
||||
: base(Settings.Default.ConnectionString)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user