AddDbContext<tracContext>(options => options.usesqlserver(conn)); }. The UseSqlServer method is recognized if I put it directly into the context:
確定! 回上一頁