Tweeted twitter.com/StackTridion/status/847535765961797632
2 edited tags
source | link

How to Mapmap Model for a schemaSchema, which has multiple Valuedvalue Component Link Fieldlink field with Multiple Allowedmultiple allowed Schemas?

I have created a schemaSchema, say ABC, which has a Multivaluedmultivalued Component Link field. There are multiple allowed schemasSchemas in the field, say A & B. How can we map this field when we create the Model for it in .NET DXA Application?

For one allowed schemaSchema, I can do it straight forward.

public List field { get; set; }

public List<A> field { get; set; }

How can we handle, if multiple schemasSchemas are allowed?

How to Map Model for a schema, which has multiple Valued Component Link Field with Multiple Allowed Schemas?

I have created a schema, say ABC, which has a Multivalued Component Link field. There are multiple allowed schemas in the field, say A & B. How can we map this field when we create the Model for it in .NET DXA Application?

For one allowed schema, I can do it straight forward.

public List field { get; set; }

How can we handle, if multiple schemas are allowed?

How to map Model for a Schema, which has multiple value Component link field with multiple allowed Schemas?

I have created a Schema, say ABC, which has a multivalued Component Link field. There are multiple allowed Schemas in the field, say A & B. How can we map this field when we create the Model for it in .NET DXA Application?

For one allowed Schema, I can do it straight forward.

public List<A> field { get; set; }

How can we handle, if multiple Schemas are allowed?

1
source | link

How to Map Model for a schema, which has multiple Valued Component Link Field with Multiple Allowed Schemas?

I have created a schema, say ABC, which has a Multivalued Component Link field. There are multiple allowed schemas in the field, say A & B. How can we map this field when we create the Model for it in .NET DXA Application?

For one allowed schema, I can do it straight forward.

public List field { get; set; }

How can we handle, if multiple schemas are allowed?