mirror of
https://github.com/VitalickS/BrightSharp.Toolkit.git
synced 2026-03-21 02:21:15 +00:00
52 lines
1.4 KiB
C#
52 lines
1.4 KiB
C#
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
|
|
{
|
|
}
|
|
}
|