public void InsertTagMapping(ITagMappingDataSource ds) { List <DbParameter> list; string sql = this.InsertStatement("TagMapping", ds, out list); this.DataAccess.ExecuteNonQuery(sql, list); }
public void DeleteTagMapping(ITagMappingDataSource ds) { throw new NotImplementedException(); }
public void DeleteTagMapping(ITagMappingDataSource ds) { this.DataAccess.ExecuteNonQuery($"delete from TagMapping where TagID = {ds.TagID} and FileID = {ds.FileID}"); }
public override bool Equals(object obj) { ITagMappingDataSource source = obj as ITagMappingDataSource; return((source?.FileID == this.FileID) && (source.TagID == this.TagID)); }