示例#1
0
        public void Configuration(IAppBuilder app)
        {
            ConfigureAuth(app);
            app.MapSignalR();

            var context = new StarWars3Context();

            context.Database.Initialize(true);
        }
示例#2
0
        private bool IsExistingPlayer(int?id)
        {
            var context = new StarWars3Context();

            return(context.Players.Any(p => p.Id == id));
        }