Ejemplo n.º 1
0
        private void CreateService()
        {
            var builder = new DbContextOptionsBuilder <SMContext>().UseSqlServer("Server=.\\SQLEXPRESS;Database=MariaDB;Trusted_Connection=True;");

            _SMContext = new SMContext(builder.Options);
            _ISesion   = new InitSesion(_SMContext);
        }
Ejemplo n.º 2
0
 public SesionController(ISesion iSesion, SMContext sMContext)
 {
     _IISesion  = iSesion;
     _SMContext = sMContext;
 }