コード例 #1
0
        public bool Insert(Dokuman model)
        {
            KullaniciDokuman kullaniciDokuman = new KullaniciDokuman
            {
                DokumanId   = _dokumanService.Insert(model),
                KullaniciId = model.Olusturankisi,
                Etkinlikid  = model.Guncelleyenkisi
            };

            const string Sql = "insert into public.kullanicidokuman (kullaniciid, dokumanid, etkinlikid) values(@kullaniciid, @dokumanid, @etkinlikid)";

            return(_genericRepository.Insert(Sql, kullaniciDokuman));
        }
コード例 #2
0
        public List <Dokuman> Select(KullaniciDokuman model)
        {
            const string Sql = "select d.* from public.dokuman d, public.kullanicidokuman kd where d.id = kd.dokumanid and kd.etkinlikid = @etkinlikid";

            return(_genericRepository.Select <Dokuman>(Sql, model));
        }