void IOracleModelVisitor.VisitTablespace(TablespaceModel item) { if (this._filter(item)) { _items.Add(item); } }
public override List <TablespacesDto_11> Resolve(DbContextOracle context, Action <TablespacesDto_11> action) { List <TablespacesDto_11> List = new List <TablespacesDto_11>(); var db = context.Database; this.OracleContext = context; if (action == null) { action = t => { var obj = new TablespaceModel() { Name = t.TablespaceName, BlockSize = t.BlockSize, MaxSize = t.MaxSize, MinExtlen = t.MinExtlen, Status = t.Status, Contents = t.Contents, ForceLogging = t.ForceLogging.ToBoolean(), ExtentManagement = t.ExtentManagement, AllocationType = t.AllocationType, PluggedIn = t.PluggedIn.ToBoolean(), SegmentSpaceManagement = t.SegmentSpaceManagement, DefTabCompression = t.DefTabCompression, Retention = t.Retention, Bigfile = t.Bigfile.ToBoolean(), PredicateEvaluation = t.PredicateEvaluation, Encrypted = t.Encrypted.ToBoolean(), CompressFor = t.CompressFor, GroupName = t.GroupName, }; obj.PhysicalAttributes.Logging = t.Logging; obj.PhysicalAttributes.InitialExtent = t.InitialExtent; obj.PhysicalAttributes.NextExtent = t.NextExtent; obj.PhysicalAttributes.MinExtents = t.MinExtents; obj.PhysicalAttributes.MaxExtents = t.MaxExtents; obj.PhysicalAttributes.PctIncrease = t.PctIncrease; db.Tablespaces.Add(obj); } } ; TablespacesQueryDescriptor_11 Tablespaces = new TablespacesQueryDescriptor_11(context.Manager.ConnectionString); using (var reader = context.Manager.ExecuteReader(CommandType.Text, sql, QueryBase.DbParams.ToArray())) { List = Tablespaces.ReadAll(reader, action).ToList(); } return(List); } }
public void VisitTablespace(TablespaceModel item) { if (InFile(item)) { } }