public virtual DataTypeSchemaCollection GetDataTypes() { DataTypeSchemaCollection collection = new DataTypeSchemaCollection(); IPooledDbConnection conn = connectionPool.Request(); try { //restrictions: name DataTable dt = conn.GetSchema(dataTypesCollectionString); for (int r = 0; r < dt.Rows.Count; r++) { DataRow row = dt.Rows[r]; collection.Add(GetDataType(row)); } } catch (Exception e) { QueryService.RaiseException(e); } conn.Release(); return(collection); }
public DataTypeSchemaCollection(DataTypeSchemaCollection collection) : base(collection, true) { }