Create a relations object, with given owner and target types.
The procedure delegates will be assigned to the relations object.
List of Fields collection for target objects are passed in as parameters in this syntax.
Namespace: Cartella.InterfacesAssembly: CartellaData (in CartellaData.dll) Version: 4.1.0.171 (4.1.0.171)
Syntax
C# |
---|
ICartellaRelations<TOwner, TTarget> CreateRelations<TOwner, TTargetObject, TTarget>( TOwner owner, bool isReadonly, IFieldCollection[] fieldsList ) where TOwner : ICartellaObject where TTargetObject : class, new(), TTarget where TTarget : IBaseObject |
Visual Basic |
---|
Function CreateRelations(Of TOwner As ICartellaObject, TTargetObject As {Class, New, TTarget}, TTarget As IBaseObject) ( _ owner As TOwner, _ isReadonly As Boolean, _ fieldsList As IFieldCollection() _ ) As ICartellaRelations(Of TOwner, TTarget) |
Visual C++ |
---|
generic<typename TOwner, typename TTargetObject, typename TTarget> where TOwner : ICartellaObject where TTargetObject : ref class, gcnew(), TTarget where TTarget : IBaseObject ICartellaRelations<TOwner, TTarget>^ CreateRelations( TOwner owner, bool isReadonly, array<IFieldCollection^>^ fieldsList ) |
Parameters
- owner
- Type: TOwner
Owner object with Type TOwner
- isReadonly
- Type: System..::..Boolean
Determine if the relations object return allow insert/remove or not
- fieldsList
- Type: array<Cartella.Interfaces..::..IFieldCollection>[]()[][]
list of target objects as carrier format
Type Parameters
- TOwner
- Owner Type, must be derived from ICartellaObject interface,
- TTargetObject
- Target class Type. It must be a new-able class type for object creation. Cannot be interface or abstract class.
- TTarget
- Target Type, must be derived from IBaseOjbect interface.