SHARE
TWEET

Untitled

EraCoder Apr 26th, 2018 105 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.  
  6. namespace DtabaseConnect.CRUD
  7. {
  8.     public class IEnumTable
  9.     {
  10.         Context.DigitalServiceContext digitalServiceContext = new Context.DigitalServiceContext();
  11.         //User Role
  12.         public IEnumerable<Service.Entity.User_role> IEnumUser_role { get; set; }
  13.         public IEnumerable<Service.Entity.Log_user_role> IEnumLog_user_role { get; set; }
  14.         //Users
  15.         public IEnumerable<Service.Entity.Users> IEnumUsers { get; set; }
  16.         public IEnumerable<Service.Entity.Log_users> IEnumLog_Users { get; set; }
  17.         //Game addition request
  18.         public IEnumerable<Service.Entity.Game_addition_request> IEnumGame_addition_request { get; set; }
  19.         public IEnumerable<Service.Entity.Log_game_addition_request> IEnumLog_game_addition_request { get; set; }
  20.         //Acount money
  21.         public IEnumerable<Service.Entity.Account_money> IEnumAccount_money { get; set; }
  22.         public IEnumerable<Service.Entity.Log_account_money> IEnumLog_account_money { get; set; }
  23.         //Complaints on users
  24.         public IEnumerable<Service.Entity.Complaints_on_users> IEnumComplaints_on_users { get; set; }
  25.         public IEnumerable<Service.Entity.Log_complaints_on_users> IEnumLog_complaints_on_users { get; set; }
  26.         //Complaints on game
  27.         public IEnumerable<Service.Entity.Complaints_on_game> IEnumComplaints_on_game { get; set; }
  28.         public IEnumerable<Service.Entity.Log_complaints_on_game> IEnumLog_complaints_on_game { get; set; }
  29.         //Developers
  30.         public IEnumerable<Service.Entity.Developers> IEnumdevelopers { get; set; }
  31.         public IEnumerable<Service.Entity.Log_developers> IEnumLog_developers { get; set; }
  32.         //Payment games
  33.         public IEnumerable<Service.Entity.Payment_games> IEnumpayment_games { get; set; }
  34.         public IEnumerable<Service.Entity.Log_payment_games> IEnumLog_payment_games { get; set; }
  35.         //Release games
  36.         public IEnumerable<Service.Entity.Release_games> IEnumrelease_games { get; set; }
  37.         public IEnumerable<Service.Entity.Log_release_games> IEnumLog_release_games { get; set; }
  38.         //Statistics
  39.         public IEnumerable<Service.Entity.Statistics> IEnumstatistics { get; set; }
  40.         public IEnumerable<Service.Entity.Log_statistics> IEnumLog_statistics { get; set; }
  41.         //Users are friends
  42.         public IEnumerable<Service.Entity.Users_are_friends> IEnumusers_are_friends { get; set; }
  43.         public IEnumerable<Service.Entity.Log_users_are_friends> IEnumLog_users_are_friends { get; set; }
  44.  
  45.         public IEnumTable ReturnAllTable()
  46.         {
  47.             IEnumTable model = new IEnumTable
  48.             {
  49.                 IEnumUser_role = digitalServiceContext.DbUser_roles.ToList(),
  50.                 IEnumLog_user_role = digitalServiceContext.DbLog_user_roles.ToList(),
  51.                 IEnumUsers = digitalServiceContext.DbUsers.ToList(),
  52.                 IEnumLog_Users = digitalServiceContext.DbLog_Users.ToList(),
  53.                 IEnumGame_addition_request = digitalServiceContext.Dbgame_addition_request.ToList(),
  54.                 IEnumLog_game_addition_request = digitalServiceContext.DbLog_game_addition_request.ToList(),
  55.                 IEnumAccount_money = digitalServiceContext.DbAccount_money.ToList(),
  56.                 IEnumLog_account_money = digitalServiceContext.DbLog_account_money.ToList(),
  57.                 IEnumdevelopers = digitalServiceContext.Dbdevelopers.ToList(),
  58.                 IEnumLog_developers = digitalServiceContext.DbLog_developers.ToList(),
  59.                 IEnumpayment_games = digitalServiceContext.Dbpayment_games.ToList(),
  60.                 IEnumLog_payment_games = digitalServiceContext.DbLog_payment_games.ToList(),
  61.                 IEnumrelease_games = digitalServiceContext.Dbrelease_games.ToList(),
  62.                 IEnumLog_release_games = digitalServiceContext.DbLog_release_games.ToList(),
  63.                 IEnumusers_are_friends = digitalServiceContext.Dbusers_are_friends.ToList(),
  64.                 IEnumLog_users_are_friends = digitalServiceContext.DbLog_users_are_friends.ToList()
  65.             };
  66.             return model;
  67.         }
  68.     }
  69. }
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