I am trying to create external content type programmatically with SharePoint 2010. Here is the MSDN link which I am using for reference.
I have created a console application and put the same code as provided. But I am facing issue in below line:
// Make a new Contact LobSystem // NOTE: Assume that the "AdventureWorks" LobSystem // does not already exist. LobSystem adventureWorksLobSystem = contactModel.OwnedReferencedLobSystems.Create( "AdventureWorks", true, SystemType.Database);
I am not able to pass value of
SystemType.Database. I am not able to find what could be the use of it as well as how can I pass that value. Can anyone tell me what should be the value and how to pass it?
Thanks in advance.