예제 #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);
     }
 }
예제 #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()));
        }
예제 #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()));
        }
예제 #4
0
 partial void DeleteTableList(TableList instance);
예제 #5
0
 partial void UpdateTableList(TableList instance);
예제 #6
0
 partial void InsertTableList(TableList instance);