Create a relations object, with given owner and target types.
The procedure delegates will be assigned to the relations object.
We can decide if the relations is editable this this syntax.
Namespace: Cartella.InterfacesAssembly: CartellaData (in CartellaData.dll) Version: 4.1.0.171 (4.1.0.171)
Syntax
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
) |
Parameters
- owner
- Type: TOwner
Owner object with Type TOwner
- isReadonly
- Type: System..::..Boolean
Determine if the relations object return allow insert/remove or not
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.
Field Value
ICartellaRelations<TOwner, TTarget>
Return Value
Relations object
See Also