コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsfsetupzacct(ref DataRow row, Glsfsetupzacct entity)
 {
     row.SetField("itemno", entity.itemno);
     row.SetField("begacctno", entity.begacctno);
     row.SetField("begsubno", entity.begsubno);
     row.SetField("endacctno", entity.endacctno);
     row.SetField("endsubno", entity.endsubno);
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Glsfsetupzacct BuildGlsfsetupzacctFromRow(DataRow row)
        {
            Glsfsetupzacct entity = new Glsfsetupzacct();

            entity.itemno    = row.IsNull("itemno") ? 0 : row.Field <int>("itemno");
            entity.begacctno = row.IsNull("begacctno") ? 0 : row.Field <int>("begacctno");
            entity.begsubno  = row.IsNull("begsubno") ? 0 : row.Field <int>("begsubno");
            entity.endacctno = row.IsNull("endacctno") ? 0 : row.Field <int>("endacctno");
            entity.endsubno  = row.IsNull("endsubno") ? 0 : row.Field <int>("endsubno");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }