public MagicHttpController()
        {
            var connectionString = System.Configuration.ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString;
            var dataContext      = new Magic.Data.DataContextWrapper(connectionString);

            _gameLog = new Magic.Data.GameLog(dataContext);
        }
示例#2
0
 public Logger(DataContextWrapper dataContext)
 {
     this.dataContext = dataContext;
 }