0

I use SPMetal on two lists on my SharePoint site and there are several columns with choice field who have the same choices.

<Field Name='Colors1' Type='Choice'>
  <CHOICES>
      <CHOICE>BLUE</CHOICE>
      <CHOICE>GREEN</CHOICE>
  <CHOICES>
</Field>
<Field Name='Colors2' Type='Choice'>
      <CHOICES>
          <CHOICE>BLUE</CHOICE>
          <CHOICE>GREEN</CHOICE>
      <CHOICES>
</Field>

SPMetal now creates two properties for class1 and 2 (which I want) but also with different types

public System.Nullable<Colors1> Colors1 {...}
public System.Nullable<Colors2> Colors2 {...}

How can I configure the Parameters.xml to use the same enum for every of these color choices?

0

I had the same situation and resolved it using a separate column definition (in Visual Studio).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.