コード例 #1
0
 public usersController(usercontext context)
 {
     _context = context;
     standardNotificationHubConfiguration = new NotificationHubConfiguration();
     standardNotificationHubConfiguration.ConnectionString = "Endpoint=sb://ruoqianxu.servicebus.windows.net/;SharedAccessKeyName=DefaultFullSharedAccessSignature;SharedAccessKey=GQFrRQ/CJE0SA9gpp1+tB6YW09MvaiLs90r5x54X/AI=";
     standardNotificationHubConfiguration.HubName          = "PushNotificationDemoIct638";
 }
コード例 #2
0
        public ActionResult Login(LoginModel log)
        {
            usercontext us = new usercontext();

            us.logins.Add(log);
            us.SaveChanges();
            return(View());
        }
コード例 #3
0
 public usersController(usercontext context)
 {
     _context = context;
 }
コード例 #4
0
        public static int findlast()
        {
            usercontext db = new usercontext();

            return(Convert.ToInt32(db.Database.SqlQuery <decimal>("SELECT IDENT_CURRENT('order')").First()));
        }