Пример #1
0
        public BlockRates SaveBlockRates(long blocks, long difficulty)
        {
            BlockRatesDac dac   = new BlockRatesDac();
            BlockRates    rates = new BlockRates();

            rates.Blocks     = blocks;
            rates.Difficulty = difficulty;
            rates.Time       = Time.EpochTime;

            dac.Insert(rates);
            return(rates);
        }
Пример #2
0
        public BlockRates SelectById(long id)
        {
            BlockRatesDac dac = new BlockRatesDac();

            return(dac.SelectById(id));
        }
Пример #3
0
        public bool IsExist(long id)
        {
            BlockRatesDac dac = new BlockRatesDac();

            return(dac.IsExisted(id));
        }
Пример #4
0
        public void Update(BlockRates entity)
        {
            BlockRatesDac dac = new BlockRatesDac();

            dac.Update(entity);
        }
Пример #5
0
        public void Delete(long id)
        {
            BlockRatesDac dac = new BlockRatesDac();

            dac.Delete(id);
        }
Пример #6
0
        public List <BlockRates> SelectAll()
        {
            BlockRatesDac dac = new BlockRatesDac();

            return(dac.SelectAll());
        }