数据库变更CNPC_XJYJ
This commit is contained in:
@@ -8,7 +8,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class TrainTestRecordService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取考试记录
|
||||
@@ -26,7 +26,7 @@ namespace BLL
|
||||
/// <param name="Training"></param>
|
||||
public static void AddTestRecord(Model.Training_TrainTestRecord testRecord)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Training_TrainTestRecord newTestRecord = new Model.Training_TrainTestRecord
|
||||
{
|
||||
TrainingTestRecordId = testRecord.TrainingTestRecordId,
|
||||
@@ -48,7 +48,7 @@ namespace BLL
|
||||
/// <param name="Training"></param>
|
||||
public static void UpdateTrainTestRecord(Model.Training_TrainTestRecord testRecord)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Training_TrainTestRecord newTestRecord = db.Training_TrainTestRecord.FirstOrDefault(e => e.TrainingTestRecordId == testRecord.TrainingTestRecordId);
|
||||
if (newTestRecord != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user