public void Delete(IDataEntityType entityType, object oid) { IDocumentService service = OrmEntry.CreateDocumentService(entityType, this.DBDriver) as IDocumentService; if (service != null) { service.Delete(oid); } }
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); }
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); } }