SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For SPListItem's built-in field values we have SPBuiltInFieldId class with many guids - SPBuiltInFieldId.Title and so on.

Now I am working with BCS and I can't find any built-in object for "BdcIdentity" field title for item fields in external lists. All the MSND's code-samples not so well-formed with hard-coded "BdcIdentity" string inside. So, should I cover it up in own const-static class or is there already built-in constant for that?

share|improve this question
up vote 1 down vote accepted

I'm not aware of any re-usable constant for "BdcIdentity".

Using .Net Reflector I searched most of the SharePoint 2010 assemblies and found that MS seem to hard code this string inline repeatedly rather than use a constant.

The best thing for you to do is create your own constant.

share|improve this answer
Well, I used to make a research with reflecto too. And have similar result. Ok, at this very moment I'll write a const-string and if I find out any built-in const I'll make a msg here. Thnx a lot. – avishnyakov Nov 25 '10 at 7:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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