From 356a9d1ee29eafda6851d26a890a85f5d8302595 Mon Sep 17 00:00:00 2001 From: Uncled1023 Date: Thu, 16 Jul 2015 21:06:27 -0700 Subject: [PATCH] Configured remote deployment, changed framework to 4.5.2 to work on IIS. --- Teknik/Global.asax.cs | 2 - Teknik/Models/SampleData.cs | 31 -------------- Teknik/Teknik.csproj | 12 +++--- Teknik/Web.config | 82 +++++++++++++++++++++---------------- 4 files changed, 52 insertions(+), 75 deletions(-) delete mode 100644 Teknik/Models/SampleData.cs diff --git a/Teknik/Global.asax.cs b/Teknik/Global.asax.cs index 0d09c06..486c947 100644 --- a/Teknik/Global.asax.cs +++ b/Teknik/Global.asax.cs @@ -19,8 +19,6 @@ namespace Teknik FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); - - Database.SetInitializer(new SampleData()); } } } diff --git a/Teknik/Models/SampleData.cs b/Teknik/Models/SampleData.cs deleted file mode 100644 index 9597028..0000000 --- a/Teknik/Models/SampleData.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Data.Entity; - -namespace Teknik.Models -{ - public class SampleData : DropCreateDatabaseIfModelChanges - { - protected override void Seed(TeknikEntities context) - { - var user = new User - { - Username = "Uncled1023", - JoinDate = DateTime.Now, - LastSeen = DateTime.Now - }; - context.Users.Add(user); - - var posts = new List - { - new Post { Article = "Test Post", DatePosted = DateTime.Now, DatePublished = DateTime.Now, Title = "Test Post", Published = false} - }; - posts.ForEach(post => context.Posts.Add(post)); - - new List - { - new Blog {Posts = posts, User = user} - }.ForEach(blog => context.Blogs.Add(blog)); - } - } -} \ No newline at end of file diff --git a/Teknik/Teknik.csproj b/Teknik/Teknik.csproj index 73b3039..80a52c6 100644 --- a/Teknik/Teknik.csproj +++ b/Teknik/Teknik.csproj @@ -13,7 +13,7 @@ Properties Teknik Teknik - v4.6 + v4.5.2 false true 44300 @@ -21,6 +21,7 @@ + true @@ -59,16 +60,14 @@ + - - - - + @@ -114,6 +113,7 @@ True ..\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll + ..\packages\WebGrease.1.6.0\lib\WebGrease.dll True @@ -174,7 +174,6 @@ - @@ -214,6 +213,7 @@ + diff --git a/Teknik/Web.config b/Teknik/Web.config index df03de6..cc0f7f8 100644 --- a/Teknik/Web.config +++ b/Teknik/Web.config @@ -1,84 +1,94 @@ - + - -
- - +
+ + + + - - - - + + + + + - - - + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - + \ No newline at end of file