mirror of
https://github.com/VitalickS/BrightSharp.Toolkit.git
synced 2026-03-21 10:21:16 +00:00
Initial
This commit is contained in:
51
AppleJobs.Data/AppleJobsContext.cs
Normal file
51
AppleJobs.Data/AppleJobsContext.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
using AppleJobs.Data.Models;
|
||||
using AppleJobs.Data.Models.ModelsJobs;
|
||||
using Microsoft.AspNet.Identity.EntityFramework;
|
||||
using MySql.Data.Entity;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity;
|
||||
|
||||
namespace AppleJobs.Data
|
||||
{
|
||||
[DbConfigurationType(typeof(MySqlEFConfiguration))]
|
||||
public class AppleJobsContext : IdentityDbContext<ApplicationUser>
|
||||
{
|
||||
#region Common
|
||||
|
||||
public DbSet<Customer> Customers { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Orders
|
||||
|
||||
public DbSet<OrderCategory> OrderCategories { get; set; }
|
||||
public DbSet<Order> Orders { get; set; }
|
||||
public DbSet<OrderView> OrdersView { get; set; }
|
||||
public DbSet<OrderStatus> OrderStatuses { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Inventory
|
||||
|
||||
public DbSet<Accessories> Accessories { get; set; }
|
||||
public DbSet<Employee> Employees { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Prices
|
||||
|
||||
public DbSet<Model> Models { get; set; }
|
||||
public DbSet<ModelJob> ModelJobs { get; set; }
|
||||
public DbSet<ModelCategory> ModelCategories { get; set; }
|
||||
public DbSet<ModelJobPriceTemplate> ModelJobPriceTemplates { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
public AppleJobsContext(string connection = "Default") : base(connection)
|
||||
{
|
||||
}
|
||||
}
|
||||
public class ApplicationUser : IdentityUser
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user