Click or drag to resize

ModelExtensionsEnsureExistsTModel Method

Ensure the specified object exists

Namespace:  SanteDB.DisconnectedClient.SQLite
Assembly:  SanteDB.DisconnectedClient.SQLite (in SanteDB.DisconnectedClient.SQLite.dll) Version: 2.2.1
Syntax
public static TModel EnsureExists<TModel>(
	this TModel me,
	SQLiteDataContext context,
	bool createIfNotExists = true
)
where TModel : IIdentifiedEntity

Parameters

me
Type: TModel

[Missing <param name="me"/> documentation for "M:SanteDB.DisconnectedClient.SQLite.ModelExtensions.EnsureExists``1(``0,SanteDB.DisconnectedClient.SQLite.SQLiteDataContext,System.Boolean)"]

context
Type: SanteDB.DisconnectedClient.SQLiteSQLiteDataContext

[Missing <param name="context"/> documentation for "M:SanteDB.DisconnectedClient.SQLite.ModelExtensions.EnsureExists``1(``0,SanteDB.DisconnectedClient.SQLite.SQLiteDataContext,System.Boolean)"]

createIfNotExists (Optional)
Type: SystemBoolean

[Missing <param name="createIfNotExists"/> documentation for "M:SanteDB.DisconnectedClient.SQLite.ModelExtensions.EnsureExists``1(``0,SanteDB.DisconnectedClient.SQLite.SQLiteDataContext,System.Boolean)"]

Type Parameters

TModel

[Missing <typeparam name="TModel"/> documentation for "M:SanteDB.DisconnectedClient.SQLite.ModelExtensions.EnsureExists``1(``0,SanteDB.DisconnectedClient.SQLite.SQLiteDataContext,System.Boolean)"]

Return Value

Type: TModel

[Missing <returns> documentation for "M:SanteDB.DisconnectedClient.SQLite.ModelExtensions.EnsureExists``1(``0,SanteDB.DisconnectedClient.SQLite.SQLiteDataContext,System.Boolean)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also