Ejemplo 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);
            }
        }
Ejemplo 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);
        }
Ejemplo 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);
            }
        }