摘要:
public static DataTable GetListField(SPList list) { DataTable dt = new DataTable(); dt.Columns.Add("InternalName"); dt.Columns.Add("DisplayName"); dt.Columns.Add("FieldType"); foreach (SPField _field in list.Fields) { if (_field.ReadOnlyField == false) { DataRow newRow 阅读全文
摘要:
public static string GetListFieldSQLSelect(SPList list) { StringBuilder sqlSelect = new StringBuilder(); sqlSelect.Append("select "); foreach (SPField _field in list.Fields) { if (!_field.Hidden && !_field.ReadOnlyField && _field.Type != SPFieldType.Attachments && _ 阅读全文