Class HasAutoDataSet
- Namespace
- BpNexT.NET.Models.HasAutoDataSet
- Assembly
- BpNexT.NET.Contracts.Com.dll
Base class for objects that are part of an AutoDataSet. Inherits change tracking, disposal, and conversion from DataSetEntity. Carries the data shape only; persistence behavior lives in the BpNexT.NET implementation so modules can compile against the contracts alone.
public class HasAutoDataSet : DataSetEntity, IDisposable, IHasAutoDataSet, IDataSetEntity
- Inheritance
-
objectHasAutoDataSet
- Implements
- Inherited Members
Properties
ApplicationInstanceId
The microtech ERP application instance this object belongs to.
[JsonIgnore]
[JsonIgnore]
[ValidateNever]
public Guid ApplicationInstanceId { get; set; }
Property Value
Bookmark
Unique identifier for the object. From microtech ERP
[JsonIgnore]
[JsonIgnore]
[ValidateNever]
public string? Bookmark { get; set; }
Property Value
BpApp
The microtech ERP application instance this object belongs to.
[JsonIgnore]
[JsonIgnore]
[ValidateNever]
public IBpApplication BpApp { get; }
Property Value
DataSet
Access to the original AutoDataSet.
[JsonIgnore]
[JsonIgnore]
public AutoDataSet? DataSet { get; set; }
Property Value
- AutoDataSet
Parent
Parent object that contains this instance, if any.
[JsonIgnore]
[JsonIgnore]
public IHasAutoDataSet? Parent { get; set; }
Property Value
ParentBookmark
Unique identifier for the parent object. From microtech ERP
[JsonIgnore]
[JsonIgnore]
[ValidateNever]
public string? ParentBookmark { get; set; }
Property Value
ParentDataSet
Access to the original Parent AutoDataSet, if any.
[JsonIgnore]
[JsonIgnore]
public AutoDataSet? ParentDataSet { get; set; }
Property Value
- AutoDataSet
Methods
As<T>(string[]?)
Converts the current generic instance to it's typed instance. The implementation is provided by the BpNexT.NET runtime assembly.
public T As<T>(string[]? includes = null) where T : IHasAutoDataSet, new()
Parameters
includesstring[]Optional: The names of the properties to include.
Returns
- T
A new instance of the target type.
Type Parameters
TThe target type.
Exceptions
- InvalidOperationException
Thrown when DataSet is null, the DataSet type does not match the target type name, or the runtime is not loaded.
Dispose(bool)
Releases unmanaged and - optionally - managed resources. Nulls out COM references, then calls base disposal.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrueto release both managed and unmanaged resources;falseto release only unmanaged resources.
GetAdjustedDataSet()
Retrieves the adjusted DataSet.
public AutoDataSet? GetAdjustedDataSet()
Returns
- AutoDataSet
GetAdjustedParentDataSet()
Retrieves the adjusted parent DataSet.
public AutoDataSet? GetAdjustedParentDataSet()
Returns
- AutoDataSet
Remove()
Removes the current instance from the DataSet. The implementation is provided by the BpNexT.NET runtime assembly.
public void Remove()
Exceptions
- InvalidOperationException
Thrown when DataSet is null or the runtime is not loaded.
Save()
Saves the current state of the object to the DataSet. The implementation is provided by the BpNexT.NET runtime assembly.
public void Save()
Exceptions
- InvalidOperationException
Thrown when DataSet is null or the runtime is not loaded.