entity framework - How to specify an array element for ComplexType -


so have following complextype:

[complextype] public class transactionsettings {     [display(name = "minimum order amount"), column(typename = "money")]     public decimal minimumorder { get; set; }     [display(name = "payment provider")]     public paymentprovider paymentprovider { get; set; }     [display(name = "provider settings")]     public providersettings providersettings { get; set; }     [display(name = "accepted credit cards")]     public creditcards[] acceptedcreditcards { get; set; }     [display(name = "taxable states")]     public states[] salestaxstates { get; set; } }  public enum creditcards {     mastercard,     visa,     [description("american express")]     americanexpress,     discover }  public enum states {     [description("alabama")]     al,     [description("alaska")]     ak,     [description("arizona")]     az,     //.     //.     //.     [description("wisconsin")]     wi,     [description("wyoming")]     wy } 

the array indicates there multiple choice particular field. know, complex types can contain primitive properties. how can accomplish this?

i solved marking enums flags. easy proceed there on...


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -