Is this instance, which we know is not persistent, actually transient? If assumed is non-null, don't hit the database to make the determination, instead assume that value; the client code must be prepared to "recover" in the case that this assumed result is incorrect.

Namespace: NHibernate.Engine
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public static bool IsTransient(
	string entityName,
	Object entity,
	Nullable<bool> assumed,
	ISessionImplementor session
)
Visual Basic
Public Shared Function IsTransient ( _
	entityName As String, _
	entity As Object, _
	assumed As Nullable(Of Boolean), _
	session As ISessionImplementor _
) As Boolean
Visual C++
public:
static bool IsTransient(
	String^ entityName, 
	Object^ entity, 
	Nullable<bool> assumed, 
	ISessionImplementor^ session
)

Parameters

entityName
Type: System..::..String

[Missing <param name="entityName"/> documentation for "M:NHibernate.Engine.ForeignKeys.IsTransient(System.String,System.Object,System.Nullable{System.Boolean},NHibernate.Engine.ISessionImplementor)"]

entity
Type: System..::..Object

[Missing <param name="entity"/> documentation for "M:NHibernate.Engine.ForeignKeys.IsTransient(System.String,System.Object,System.Nullable{System.Boolean},NHibernate.Engine.ISessionImplementor)"]

assumed
Type: System..::..Nullable<(Of <(<'Boolean>)>)>

[Missing <param name="assumed"/> documentation for "M:NHibernate.Engine.ForeignKeys.IsTransient(System.String,System.Object,System.Nullable{System.Boolean},NHibernate.Engine.ISessionImplementor)"]

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

[Missing <param name="session"/> documentation for "M:NHibernate.Engine.ForeignKeys.IsTransient(System.String,System.Object,System.Nullable{System.Boolean},NHibernate.Engine.ISessionImplementor)"]

Return Value

[Missing <returns> documentation for "M:NHibernate.Engine.ForeignKeys.IsTransient(System.String,System.Object,System.Nullable{System.Boolean},NHibernate.Engine.ISessionImplementor)"]

Remarks

If assumed is non-null, don't hit the database to make the determination, instead assume that value; the client code must be prepared to "recover" in the case that this assumed result is incorrect.

See Also