コード例 #1
0
    public int AddTAS_Staff(TAS_Staff tAS_Staff)
    {
        logHelper.InfoLog("", "tAS_Staff");
        return(DapperHelper <TAS_Staff> .Execute(@"INSERT INTO [dbo].[TAS_Staff]
       ([No]
       ,[CostCentre]
       ,[Dept]
       ,[Role])
 VALUES
       (@No
       ,@CostCentre
       ,@Dept
       ,@Role)", tAS_Staff));
    }
コード例 #2
0
    public int AddTAS_Dutys(TAS_Duty tAS_Duty)
    {
        logHelper.InfoLog("", "AddTAS_Dutys");
        return(DapperHelper <TAS_Duty> .Execute(@"INSERT INTO [dbo].[TAS_Duty]
       ([StaffNo]
       ,[CostCentre]
       ,[Hours]
       ,[Duty])
 VALUES
       (@StaffNo
       ,@CostCentre
       ,@Hours
       ,@Duty)", tAS_Duty));
    }
コード例 #3
0
    public int AddTAS_ClassesRecords(TAS_ClassesRecord tAS_CourseRecord)
    {
        logHelper.InfoLog("", "AddTAS_ClassesRecords");
        return(DapperHelper <TAS_ClassesRecord> .Execute(@"INSERT INTO [dbo].[TAS_ClassesRecord]
       ([CourseID]
       ,[Hours]
       ,[ClasseTitle]
       ,[UId]
       ,[Position])
 VALUES
       (@CourseID
       ,@Hours
       ,@ClasseTitle
       ,@UId
       ,@Position)", tAS_CourseRecord));
    }
コード例 #4
0
    public int AddTAS_users(TAS_User tAS_user)
    {
        logHelper.InfoLog("", "AddTAS_users");
        return(DapperHelper <TAS_User> .Execute(@"INSERT INTO [dbo].[TAS_User]
       ([UId]
       ,[Fname]
       ,[Lname]
       ,[Title]
       ,[StaffNo]
       ,[Type])
 VALUES
       (@UId
       ,@Fname
       ,@Lname
       ,@Title
       ,@StaffNo
       ,@Type)", tAS_user));
    }
コード例 #5
0
   public int DelectTAS_users(TAS_User tAS_user)
   {
       logHelper.InfoLog("", "DelectTAS_users");
       return(DapperHelper <TAS_User> .Execute(@"DELETE FROM [dbo].[TAS_User]
 WHERE id=@Id", tAS_user));
   }