Esempio n. 1
0
 partial void DeleteTableList(TableList instance)
 {
     base.ExecuteDynamicDelete(instance);
     using (var cmd = this.GetCommand())
     {
         string sql = this.DeleteTableComment(instance);
         cmd.CommandText = sql;
         this.ExecuteNonQuery(cmd);
     }
 }
Esempio n. 2
0
        private string DeleteTableComment(TableList instance)
        {
            StringBuilder sb = new StringBuilder();
            //テーブル説明Drop
            string template = Properties.Resources.DropTableDescription;

            sb.AppendFormat(template, instance.TableName);
            sb.AppendLine();
            return(replaceGo(sb.ToString()));
        }
Esempio n. 3
0
        private string UpdateTableComment(TableList instance)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(DeleteTableComment(instance));
            //テーブル説明
            string template = Properties.Resources.AddTableDescription;

            if (!string.IsNullOrWhiteSpace(instance.TableDisplayName))
            {
                sb.AppendFormat(template, instance.TableName, instance.TableDisplayName);
            }
            //テーブル概要
            if (!string.IsNullOrWhiteSpace(instance.Comment))
            {
                template = Properties.Resources.AddTableComment;
                sb.AppendFormat(template, instance.TableName, instance.Comment);
            }
            return(replaceGo(sb.ToString()));
        }
Esempio n. 4
0
 partial void DeleteTableList(TableList instance);
Esempio n. 5
0
 partial void UpdateTableList(TableList instance);
Esempio n. 6
0
 partial void InsertTableList(TableList instance);