Entity.Create Method
Creates an external content type.
Namespace: Microsoft.SharePoint.BusinessData.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function Create ( _
name As String, _
namespace As String, _
isCached As Boolean, _
entityVersion As Version, _
estimatedInstanceCount As UInteger, _
cacheUsage As CacheUsage, _
lobSystem As LobSystem, _
model As Model, _
metadataCatalog As AdministrationMetadataCatalog _
) As Entity
'Usage
Dim name As String
Dim namespace As String
Dim isCached As Boolean
Dim entityVersion As Version
Dim estimatedInstanceCount As UInteger
Dim cacheUsage As CacheUsage
Dim lobSystem As LobSystem
Dim model As Model
Dim metadataCatalog As AdministrationMetadataCatalog
Dim returnValue As Entity
returnValue = Entity.Create(name, namespace, _
isCached, entityVersion, estimatedInstanceCount, _
cacheUsage, lobSystem, model, metadataCatalog)
public static Entity Create(
string name,
string namespace,
bool isCached,
Version entityVersion,
uint estimatedInstanceCount,
CacheUsage cacheUsage,
LobSystem lobSystem,
Model model,
AdministrationMetadataCatalog metadataCatalog
)
Parameters
name
Type: System.StringThe name of the external content type.
namespace
Type: System.StringThe namespace that contains the external content type.
isCached
Type: System.Booleantrue if the instance is cached; otherwise, false.
entityVersion
Type: System.VersionThe external content type version.
estimatedInstanceCount
Type: System.UInt32A estimate of the number of instances.
- cacheUsage
Type: Microsoft.BusinessData.Runtime.CacheUsage
lobSystem
Type: Microsoft.SharePoint.BusinessData.Administration.LobSystemThe external system instance.
model
Type: Microsoft.SharePoint.BusinessData.Administration.ModelThe model name.
metadataCatalog
Type: Microsoft.SharePoint.BusinessData.Administration.AdministrationMetadataCatalogThe Business Data Connectivity (BDC) service Metadata Store.
Return Value
Type: Microsoft.SharePoint.BusinessData.Administration.Entity
The external content type that is created.
Examples
Code Snippet: Create an External Content Type Using the Administration Object Model