在Service中,this.BaseRepository("ThreeYearFighting").Insert(entity);
黄色部分一定要填写表名对应的数据库,否则默认为服务器上默认的数据库,可能是BaseDB等。
在Service中,this.BaseRepository("ThreeYearFighting").Insert(entity);
黄色部分一定要填写表名对应的数据库,否则默认为服务器上默认的数据库,可能是BaseDB等。
转载于:https://www.cnblogs.com/XYYCKL/p/9967377.html