This commit is contained in:
Vitaliy
2017-01-10 21:06:47 +03:00
parent 6ead62af6e
commit 2bbf0580f7
44 changed files with 565 additions and 893 deletions

View File

@@ -1,8 +1,10 @@
using AppleJobs.Data.Models;
using AppleJobs.Data.Models.Articles;
using AppleJobs.Data.Models.Common;
using AppleJobs.Data.Models.Inventory;
using AppleJobs.Data.Models.ModelsJobs;
using AppleJobs.Data.Models.Orders;
using Microsoft.AspNet.Identity.EntityFramework;
using MySql.Data.Entity;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
namespace AppleJobs.Data
@@ -41,6 +43,13 @@ namespace AppleJobs.Data
#endregion
#region Articles / News
public DbSet<News> News { get; set; }
public DbSet<NewsCategory> NewsCategories { get; set; }
#endregion
public AppleJobsContext(string connection = "Default") : base(connection)
{
}