示例#1
0
文件: TermModel.cs 项目: hlavacm/WPCG
 public override string GetInsertCommandText(IDatabaseConnectionModel databaseConnectionModel)
 {
     string table = databaseConnectionModel.GetTablePrefixed(TableName);
     return string.Format("INSERT INTO {0} (name, slug, term_group) VALUES (@name, @slug, @termGroup)", table);
 }
示例#2
0
文件: UserModel.cs 项目: hlavacm/WPCG
 public override string GetInsertCommandText(IDatabaseConnectionModel databaseConnectionModel)
 {
     throw new NotImplementedException();
 }
示例#3
0
 public override string GetInsertCommandText(IDatabaseConnectionModel databaseConnectionModel)
 {
     string table = databaseConnectionModel.GetTablePrefixed(TableName);
     return string.Format("INSERT INTO {0} (object_id, term_taxonomy_id, term_order) VALUES (@objectId, @termTaxonomyId, @termOrder)", table);
 }
示例#4
0
 public override string GetInsertCommandText(IDatabaseConnectionModel databaseConnectionModel)
 {
     string table = databaseConnectionModel.GetTablePrefixed(TableName);
     return string.Format("INSERT INTO {0} (term_id, taxonomy, description, parent) VALUES (@termId, @taxonomy, @description, @parent)", table);
 }
示例#5
0
 public virtual string GetInsertPostProcessingCommandText(IDatabaseConnectionModel databaseConnectionModel)
 {
     return null;
 }
示例#6
0
 public abstract string GetInsertCommandText(IDatabaseConnectionModel databaseConnectionModel);
示例#7
0
 public override string GetInsertCommandText(IDatabaseConnectionModel databaseConnectionModel)
 {
     string table = databaseConnectionModel.GetTablePrefixed(TableName);
     return string.Format("INSERT INTO {0} (post_id, meta_key, meta_value) VALUES (@postId, @metaKey, @metaValue)", table);
 }
示例#8
0
文件: PostModel.cs 项目: hlavacm/WPCG
 public override string GetInsertPostProcessingCommandText(IDatabaseConnectionModel databaseConnectionModel)
 {
     string table = databaseConnectionModel.GetTablePrefixed(TableName);
     return string.Format("UPDATE {0} SET guid = @guid WHERE ID = @id", table);
 }
示例#9
0
文件: PostModel.cs 项目: hlavacm/WPCG
 public override string GetInsertCommandText(IDatabaseConnectionModel databaseConnectionModel)
 {
     string table = databaseConnectionModel.GetTablePrefixed(TableName);
     return string.Format("INSERT INTO {0} (post_title, post_name, post_excerpt, post_content, menu_order, post_type, post_author, post_parent, guid, post_status, ping_status, comment_status, post_date, post_date_gmt, post_modified, post_modified_gmt, post_content_filtered, to_ping, pinged, post_password, post_mime_type) VALUES (@title, @name, @excerpt, @content, @menuOrder, @type, @author, @parent, @guid, @postStatus, @pingStatus, @commentStatus, @date, @dateGmt, @modified, @modifiedGmt, @contentFiltered, @toPing, @pinged, @password, @mimeType)", table);
 }