示例#1
0
        public bool Delete(object where, Needletail.DataAccess.Engines.FilterType filterType)
        {
            //delete in both context
            var result1 = _MSSQLContext.Delete(where, filterType);
            var result2 = _SqlCEContext.Delete(where, filterType);

            return(result1 || result2);
        }
示例#2
0
        private bool MoveDataBetweenServers(DBTableDataSourceBase <E, K> source, DBTableDataSourceBase <E, K> target, object where, Needletail.DataAccess.Engines.FilterType filterType)
        {
            //get the data to move
            var toMove = source.GetMany(where, filterType, null, null);

            foreach (var e in toMove)
            {
                //insert the data
                target.Insert(e);
            }
            //delete the data
            return(source.Delete(where, filterType));
        }