示例#1
0
        public static Glsfsetupfcolist BuildGlsfsetupfcolistFromRow(DataRow row)
        {
            Glsfsetupfcolist entity = new Glsfsetupfcolist();

            entity.cono      = row.IsNull("cono") ? 0 : row.Field <int>("cono");
            entity.name      = row.IsNull("name") ? string.Empty : row.Field <string>("name");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
示例#2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsfsetupfcolist(ref DataRow row, Glsfsetupfcolist entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("name", entity.name);
     row.SetField("userfield", entity.userfield);
 }