Class BaseSchema
Inheritance
System.Object
BaseSchema
Assembly: Terrasoft.Nui.ServiceModel.dll
Syntax
[DataContract]
public class BaseSchema : IReturn<SchemaDesignerResponse>
Constructors
BaseSchema()
Declaration
BaseSchema(Schema)
Declaration
public BaseSchema(Schema schema)
Parameters
Type |
Name |
Description |
Schema |
schema |
|
Properties
Caption
Declaration
[DataMember(Name = "caption")]
public Dictionary<string, string> Caption { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.String> |
|
Description
Declaration
[DataMember(Name = "description")]
public Dictionary<string, string> Description { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.String> |
|
ExtendParent
Declaration
[DataMember(Name = "extendParent")]
public bool ExtendParent { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Name
Declaration
[DataMember(Name = "name")]
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
PackageUId
Declaration
[DataMember(Name = "packageUId")]
public Guid PackageUId { get; set; }
Property Value
Type |
Description |
System.Guid |
|
RealUId
Declaration
[DataMember(Name = "realUId")]
public Guid RealUId { get; set; }
Property Value
Type |
Description |
System.Guid |
|
UId
Declaration
[DataMember(Name = "uId")]
public Guid UId { get; set; }
Property Value
Type |
Description |
System.Guid |
|
Methods
GetElementsDictionary<T>(Schema, IEnumerable<T>, Boolean)
Returns element collection as dictionary with element properties.
Declaration
protected Dictionary<string, Dictionary<string, string>> GetElementsDictionary<T>(Schema schema, IEnumerable<T> collection, bool useNameAsKey = false)
where T : MetaItem
Parameters
Type |
Name |
Description |
Schema |
schema |
Schema.
|
System.Collections.Generic.IEnumerable<T> |
collection |
Elements collection.
|
System.Boolean |
useNameAsKey |
Use name as key in dictionary.
|
Returns
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.Dictionary<System.String, System.String>> |
Returns elemnts collection.
|
Type Parameters
Name |
Description |
T |
Child of MetaItem type.
|
Extension Methods