摘要:internal class AccessSchema { private Field GetAccessField(string connectionString, string tbName, DataRow r) { Field field = new Field(); field.AllowNull = ObjectHelper.GetBool(r["IS_NULLABLE"]); field.DefaultValue = ObjectHelper.GetString(r["COLUMN_DEFAULT"]); field.FieldDescn 阅读全文
posted @ 2011-05-22 08:49 TNTZWC 阅读 (93) 评论 (0) 编辑
摘要:internal class MySqlSchema { public bool GetSchema(Database database) { string str; string connectionString = database.ConnectionString; Match match = Regex.Match(connectionString, @"Database=(?<Database>[^\;]*);"); if (match.Success) { str = match.Groups["Database"].Value; 阅读全文
posted @ 2011-05-22 08:47 TNTZWC 阅读 (100) 评论 (0) 编辑
摘要:internal class SqlSchema { private string SqlForGetStoreProcedures = "select distinct(name) from sysobjects where type='p' "; public string SqlForGetViews = "select distinct(name) from sysobjects where type='v' "; private Database.DatabaseType type; public bool Ge 阅读全文
posted @ 2011-05-22 08:43 TNTZWC 阅读 (121) 评论 (0) 编辑