diff --git a/CHANGELOG.md b/CHANGELOG.md index 54850a3..003541c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,4 +4,7 @@ - Cleanup CategoryService code to be more idoimatic (also use some `C#`isms) [code](https://github.com/M-Zuber/MyHome/commit/cf5f5ea0627b640926425d08afbf6e5fc2001230) - General code cleanup [code](https://github.com/M-Zuber/MyHome/commit/c01be5c423f40dea61e00f6c0b651a461bec63ac) [code](https://github.com/M-Zuber/MyHome/commit/fed97602c2fc28e0122c77b5b30a86f7770c812a) [code](https://github.com/M-Zuber/MyHome/commit/167da4c53ebf62abd43b58f96bfa47dce76f18c8) - Fix [#109](https://github.com/M-Zuber/MyHome/issues/109) [code](https://github.com/M-Zuber/MyHome/commit/70b1799cad5df57961df978f9a1c5665ab961b32) + +#29/12/2015 + - Fix [#110](https://github.com/M-Zuber/MyHome/issues/110) [code](https://github.com/M-Zuber/MyHome/commit/87d674687c11bf88abaafc885d5abc02391d1b6c) diff --git a/Docs/GettingStarted.md b/Docs/GettingStarted.md index 2a84566..6cdf604 100644 --- a/Docs/GettingStarted.md +++ b/Docs/GettingStarted.md @@ -1,9 +1,7 @@ # Database Setup 1. Install SQL Server - You will need to install [SQL Server](http://downloadsqlserverexpress.com). The best option - but the biggest download file - is the `SQL Server Express with Advanced Services` option. This will give you what is needed in order to run the server and a full suite of managment tools. -2. Run the [scripts located here](https://github.com/M-Zuber/MyHome/tree/Testing/MyHome.Persistence/Scripts) - - This will create the tables and an user to connect with SQL Server not using Windows authentication -3. Verify that SQL Server has mixed/SQL authentication enabled, otherwise the program will not be able to connect +2. We are using EF Code first. There is no second step. ##Trouble Shooting If the program still doesn't work, try the following: diff --git a/MyHome.Persistence/AccountingDataContext.cs b/MyHome.Persistence/AccountingDataContext.cs index 5636838..45d3331 100644 --- a/MyHome.Persistence/AccountingDataContext.cs +++ b/MyHome.Persistence/AccountingDataContext.cs @@ -6,9 +6,7 @@ namespace MyHome.Persistence { public class AccountingDataContext : DbContext { - public const string ConnectionString = @"Server=.;Database=MyHome;User Id=home_user;Password=homeuser;"; - - public AccountingDataContext() : base(ConnectionString) + public AccountingDataContext() : base("name=Database") { } diff --git a/MyHome.Persistence/app.config b/MyHome.Persistence/app.config index 15a70c3..dbfadc6 100644 --- a/MyHome.Persistence/app.config +++ b/MyHome.Persistence/app.config @@ -14,4 +14,7 @@ + + + diff --git a/MyHome.UI/app.config b/MyHome.UI/app.config index 845e669..4de5f37 100644 --- a/MyHome.UI/app.config +++ b/MyHome.UI/app.config @@ -17,4 +17,7 @@ + + +