Example #1
0
        public void InsertTagMapping(ITagMappingDataSource ds)
        {
            List <DbParameter> list;
            string             sql = this.InsertStatement("TagMapping", ds, out list);

            this.DataAccess.ExecuteNonQuery(sql, list);
        }
Example #2
0
 public void DeleteTagMapping(ITagMappingDataSource ds)
 {
     throw new NotImplementedException();
 }
Example #3
0
 public void DeleteTagMapping(ITagMappingDataSource ds)
 {
     this.DataAccess.ExecuteNonQuery($"delete from TagMapping where TagID = {ds.TagID} and FileID = {ds.FileID}");
 }
Example #4
0
        public override bool Equals(object obj)
        {
            ITagMappingDataSource source = obj as ITagMappingDataSource;

            return((source?.FileID == this.FileID) && (source.TagID == this.TagID));
        }