Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public override string GetInsertCommandText(IDatabaseConnectionModel databaseConnectionModel)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 5
0
 public virtual string GetInsertPostProcessingCommandText(IDatabaseConnectionModel databaseConnectionModel)
 {
     return null;
 }
Ejemplo n.º 6
0
 public abstract string GetInsertCommandText(IDatabaseConnectionModel databaseConnectionModel);
Ejemplo n.º 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);
 }
Ejemplo n.º 8
0
 public override string GetInsertPostProcessingCommandText(IDatabaseConnectionModel databaseConnectionModel)
 {
     string table = databaseConnectionModel.GetTablePrefixed(TableName);
     return string.Format("UPDATE {0} SET guid = @guid WHERE ID = @id", table);
 }
Ejemplo n.º 9
0
 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);
 }