Exemplo n.º 1
0
        protected string GetUserName(Comment item)
        {
            var db       = new MemeDbContext();
            var userName = db.Users.Find(item.UserId).UserName;

            return(userName);
        }
Exemplo n.º 2
0
        public static void Init()
        {
            Database.SetInitializer(new MigrateDatabaseToLatestVersion <MemeDbContext, Configuration>());

            using (var db = new MemeDbContext())
            {
                db.Users.FirstOrDefault();
            }
        }
Exemplo n.º 3
0
		public static void Init()
		{
			Database.SetInitializer(new MigrateDatabaseToLatestVersion<MemeDbContext, Configuration>());

			using (var db = new MemeDbContext())
			{
				db.Users.FirstOrDefault();
			}
		}
Exemplo n.º 4
0
 public MemeAudioService(ITelegramBotClient telegramBotClient, MemeDbContext memeDbContext)
 {
     TelegramBotClient = telegramBotClient;
     _memeDbContext    = memeDbContext;
 }
 public UsersController(MemeDbContext context)
 {
     _context = context;
 }
Exemplo n.º 6
0
 public TemplatesssController(MemeDbContext context, IHostingEnvironment hosting)
 {
     _context           = context;
     hostingEnvironment = hosting;
 }
Exemplo n.º 7
0
 public ActorssssController(MemeDbContext context)
 {
     _context = context;
 }
Exemplo n.º 8
0
 public ActorTemplatesssController(MemeDbContext context)
 {
     _context = context;
 }
Exemplo n.º 9
0
 public BasePage()
 {
     this.dbContext = new MemeDbContext();
 }
Exemplo n.º 10
0
 public TemplatesController(MemeDbContext context, IHostingEnvironment env)
 {
     _context           = context;
     hostingEnvironment = env;
 }
 public UserReactionsssController(MemeDbContext context)
 {
     _context = context;
 }
 protected string GetUserName(Comment item)
 {
     var db = new MemeDbContext();
     var userName = db.Users.Find(item.UserId).UserName;
     return userName;
 }
 public PhrasessController(MemeDbContext context)
 {
     _context = context;
 }