예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromDbfieldnamecriteria(ref DataRow row, Dbfieldnamecriteria entity)
 {
     row.SetField("tableName", entity.tableName);
     row.SetField("fieldName", entity.fieldName);
     row.SetField("fieldnamecrituf", entity.fieldnamecrituf);
     row.SetField("userfield", entity.userfield);
 }
예제 #2
0
        public static Dbfieldnamecriteria BuildDbfieldnamecriteriaFromRow(DataRow row)
        {
            Dbfieldnamecriteria entity = new Dbfieldnamecriteria();

            entity.tableName       = row.IsNull("tableName") ? string.Empty : row.Field <string>("tableName");
            entity.fieldName       = row.IsNull("fieldName") ? string.Empty : row.Field <string>("fieldName");
            entity.fieldnamecrituf = row.IsNull("fieldnamecrituf") ? string.Empty : row.Field <string>("fieldnamecrituf");
            entity.userfield       = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }