示例#1
0
        public static System.Collections.Generic.IList <Sys_sysAddress> TransDataTableToEntityList(DataTable dt)
        {
            System.Collections.Generic.IList <Sys_sysAddress> list = new System.Collections.Generic.List <Sys_sysAddress>();
            Sys_sysAddress sys_sysAddress = null;

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                sys_sysAddress = new Sys_sysAddress();
                foreach (DataColumn dataColumn in dt.Columns)
                {
                    sys_sysAddress.EntityCustom.SetValue(dataColumn.ColumnName, dt.Rows[i][dataColumn]);
                }
                list.Add(sys_sysAddress);
            }
            return(list);
        }
示例#2
0
 public static string ConnectValuesWithChar(System.Collections.Generic.IList <Sys_sysAddress> list, string fieldName, WrapCharType wrapCharType, bool trim)
 {
     return(Sys_sysAddress.ConnectValuesWithChar(list, fieldName, ',', wrapCharType, trim));
 }