문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top