Perform an SQL UPDATE or SQL INSERT

Namespace: NHibernate.Persister.Entity
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
protected internal virtual void UpdateOrInsert(
	Object id,
	Object[] fields,
	Object[] oldFields,
	Object rowId,
	bool[] includeProperty,
	int j,
	Object oldVersion,
	Object obj,
	SqlCommandInfo sql,
	ISessionImplementor session
)
Visual Basic
Protected Friend Overridable Sub UpdateOrInsert ( _
	id As Object, _
	fields As Object(), _
	oldFields As Object(), _
	rowId As Object, _
	includeProperty As Boolean(), _
	j As Integer, _
	oldVersion As Object, _
	obj As Object, _
	sql As SqlCommandInfo, _
	session As ISessionImplementor _
)
Visual C++
protected public:
virtual void UpdateOrInsert(
	Object^ id, 
	array<Object^>^ fields, 
	array<Object^>^ oldFields, 
	Object^ rowId, 
	array<bool>^ includeProperty, 
	int j, 
	Object^ oldVersion, 
	Object^ obj, 
	SqlCommandInfo^ sql, 
	ISessionImplementor^ session
)

Parameters

id
Type: System..::..Object

[Missing <param name="id"/> documentation for "M:NHibernate.Persister.Entity.AbstractEntityPersister.UpdateOrInsert(System.Object,System.Object[],System.Object[],System.Object,System.Boolean[],System.Int32,System.Object,System.Object,NHibernate.SqlCommand.SqlCommandInfo,NHibernate.Engine.ISessionImplementor)"]

fields
Type: array<System..::..Object>[]()[][]

[Missing <param name="fields"/> documentation for "M:NHibernate.Persister.Entity.AbstractEntityPersister.UpdateOrInsert(System.Object,System.Object[],System.Object[],System.Object,System.Boolean[],System.Int32,System.Object,System.Object,NHibernate.SqlCommand.SqlCommandInfo,NHibernate.Engine.ISessionImplementor)"]

oldFields
Type: array<System..::..Object>[]()[][]

[Missing <param name="oldFields"/> documentation for "M:NHibernate.Persister.Entity.AbstractEntityPersister.UpdateOrInsert(System.Object,System.Object[],System.Object[],System.Object,System.Boolean[],System.Int32,System.Object,System.Object,NHibernate.SqlCommand.SqlCommandInfo,NHibernate.Engine.ISessionImplementor)"]

rowId
Type: System..::..Object

[Missing <param name="rowId"/> documentation for "M:NHibernate.Persister.Entity.AbstractEntityPersister.UpdateOrInsert(System.Object,System.Object[],System.Object[],System.Object,System.Boolean[],System.Int32,System.Object,System.Object,NHibernate.SqlCommand.SqlCommandInfo,NHibernate.Engine.ISessionImplementor)"]

includeProperty
Type: array<System..::..Boolean>[]()[][]

[Missing <param name="includeProperty"/> documentation for "M:NHibernate.Persister.Entity.AbstractEntityPersister.UpdateOrInsert(System.Object,System.Object[],System.Object[],System.Object,System.Boolean[],System.Int32,System.Object,System.Object,NHibernate.SqlCommand.SqlCommandInfo,NHibernate.Engine.ISessionImplementor)"]

j
Type: System..::..Int32

[Missing <param name="j"/> documentation for "M:NHibernate.Persister.Entity.AbstractEntityPersister.UpdateOrInsert(System.Object,System.Object[],System.Object[],System.Object,System.Boolean[],System.Int32,System.Object,System.Object,NHibernate.SqlCommand.SqlCommandInfo,NHibernate.Engine.ISessionImplementor)"]

oldVersion
Type: System..::..Object

[Missing <param name="oldVersion"/> documentation for "M:NHibernate.Persister.Entity.AbstractEntityPersister.UpdateOrInsert(System.Object,System.Object[],System.Object[],System.Object,System.Boolean[],System.Int32,System.Object,System.Object,NHibernate.SqlCommand.SqlCommandInfo,NHibernate.Engine.ISessionImplementor)"]

obj
Type: System..::..Object

[Missing <param name="obj"/> documentation for "M:NHibernate.Persister.Entity.AbstractEntityPersister.UpdateOrInsert(System.Object,System.Object[],System.Object[],System.Object,System.Boolean[],System.Int32,System.Object,System.Object,NHibernate.SqlCommand.SqlCommandInfo,NHibernate.Engine.ISessionImplementor)"]

sql
Type: NHibernate.SqlCommand..::..SqlCommandInfo

[Missing <param name="sql"/> documentation for "M:NHibernate.Persister.Entity.AbstractEntityPersister.UpdateOrInsert(System.Object,System.Object[],System.Object[],System.Object,System.Boolean[],System.Int32,System.Object,System.Object,NHibernate.SqlCommand.SqlCommandInfo,NHibernate.Engine.ISessionImplementor)"]

session
Type: NHibernate.Engine..::..ISessionImplementor

[Missing <param name="session"/> documentation for "M:NHibernate.Persister.Entity.AbstractEntityPersister.UpdateOrInsert(System.Object,System.Object[],System.Object[],System.Object,System.Boolean[],System.Int32,System.Object,System.Object,NHibernate.SqlCommand.SqlCommandInfo,NHibernate.Engine.ISessionImplementor)"]

See Also