private static TableMapping GetFieldMap() { TableMapping map = new TableMapping(); FieldMapping fieldDescr; map.TableName = "files"; map.AddFieldFor("Name", SimpleFieldType.String, 100); fieldDescr = map.AddFieldFor("FullName", SimpleFieldType.String, 260); fieldDescr.PropertyFlags = FieldProperties.UniqueIndex; fieldDescr = map.AddFieldFor("MD5", SimpleFieldType.String, 32); fieldDescr.PropertyFlags = FieldProperties.Indexed; return(map); }
private static TableMapping GetFieldMap() { TableMapping map = new TableMapping(); FieldMapping fieldDescr; map.TableName = "folder_refs"; fieldDescr = map.AddFieldFor("Path", SimpleFieldType.String, 260); fieldDescr.DbField = "path"; return(map); }