partial void DeleteTableList(TableList instance) { base.ExecuteDynamicDelete(instance); using (var cmd = this.GetCommand()) { string sql = this.DeleteTableComment(instance); cmd.CommandText = sql; this.ExecuteNonQuery(cmd); } }
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())); }
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())); }
partial void DeleteTableList(TableList instance);
partial void UpdateTableList(TableList instance);
partial void InsertTableList(TableList instance);