SHARE
TWEET

Untitled

EraCoder Apr 26th, 2018 119 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Data.Entity;
  6.  
  7. namespace DtabaseConnect.Context
  8. {
  9.     [DbConfigurationType(typeof(MySql.Data.Entity.MySqlEFConfiguration))]
  10.     public class DigitalServiceContext : DbContext
  11.     {
  12.         public DigitalServiceContext() : base(Connection.SetDatabaseConnection.Connection)
  13.         {
  14.  
  15.         }
  16.  
  17.         //User Roles
  18.         public DbSet<Service.Entity.User_role> DbUser_roles { get; set; }
  19.         public DbSet<Service.Entity.Log_user_role> DbLog_user_roles { get; set; }
  20.         //Users
  21.         public DbSet<Service.Entity.Users> DbUsers { get; set; }
  22.         public DbSet<Service.Entity.Log_users> DbLog_Users { get; set; }
  23.         //Acount money
  24.         public DbSet<Service.Entity.Account_money> DbAccount_money { get; set; }
  25.         public DbSet<Service.Entity.Log_account_money> DbLog_account_money { get; set; }
  26.         //Complaints on users
  27.         public DbSet<Service.Entity.Complaints_on_users> DbComplaints_on_users { get; set; }
  28.         public DbSet<Service.Entity.Log_complaints_on_users> DbLog_complaints_on_users { get; set; }
  29.         //Complaints on game
  30.         public DbSet<Service.Entity.Complaints_on_game> DbComplaints_on_game { get; set; }
  31.         public DbSet<Service.Entity.Log_complaints_on_game> DbLog_complaints_on_game { get; set; }
  32.         //Game addition request
  33.         public DbSet<Service.Entity.Game_addition_request> Dbgame_addition_request { get; set; }
  34.         public DbSet<Service.Entity.Log_game_addition_request> DbLog_game_addition_request { get; set; }
  35.         //Developers
  36.         public DbSet<Service.Entity.Developers> Dbdevelopers { get; set; }
  37.         public DbSet<Service.Entity.Log_developers> DbLog_developers { get; set; }
  38.         //Payment games
  39.         public DbSet<Service.Entity.Payment_games> Dbpayment_games { get; set; }
  40.         public DbSet<Service.Entity.Log_payment_games> DbLog_payment_games { get; set; }      
  41.         //Release games
  42.         public DbSet<Service.Entity.Release_games> Dbrelease_games { get; set; }
  43.         public DbSet<Service.Entity.Log_release_games> DbLog_release_games { get; set; }
  44.         //Statistics
  45.         public DbSet<Service.Entity.Statistics> Dbstatistics { get; set; }
  46.         public DbSet<Service.Entity.Log_statistics> DbLog_statistics { get; set; }
  47.         //Users are friends
  48.         public DbSet<Service.Entity.Users_are_friends> Dbusers_are_friends { get; set; }
  49.         public DbSet<Service.Entity.Log_users_are_friends> DbLog_users_are_friends { get; set; }
  50.  
  51.     }
  52. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top