Esempio n. 1
0
        public void Delete(IDataEntityType entityType, object oid)
        {
            IDocumentService service = OrmEntry.CreateDocumentService(entityType, this.DBDriver) as IDocumentService;

            if (service != null)
            {
                service.Delete(oid);
            }
        }
Esempio n. 2
0
        public object Read(IDataEntityType entityType, object oid)
        {
            IDocumentService service = OrmEntry.CreateDocumentService(entityType, this.DBDriver) as IDocumentService;

            if (service != null)
            {
                return(service.Read(oid));
            }
            return(null);
        }
Esempio n. 3
0
        public void Save(DependencyObject entity)
        {
            if (entity == null)
            {
                throw new ArgumentNullException("entity");
            }
            IDocumentService service = OrmEntry.CreateDocumentService(entity.GetDataEntityType(), this.DBDriver) as IDocumentService;

            if (service != null)
            {
                service.Save(entity);
            }
        }