· 8 years ago · Feb 27, 2018, 08:28 AM
1Creating Session Factory
2INF: NHibernate 5.0.3 (assembly 5.0.0.0)
3INF: hibernate-configuration section not found in application configuration file
4INF: Bytecode provider name : lcg
5INF: Using reflection optimizer
6DBG: Mapping XML:
7<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"><class xmlns="urn:nhibernate-mapping-2.2" name="NHibernate.ConsoleTest.ICataglog, NHibernate.ConsoleTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" table="tblCatalog"><id name="Id" type="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"><column name="Id" /><generator class="assigned" /></id><property name="Name" type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"><column name="Name" /></property></class></hibernate-mapping>
8INF: Using dialect: NHibernate.Dialect.SQLiteDialect
9INF: Mapping class: NHibernate.ConsoleTest.ICataglog -> tblCatalog
10DBG: Mapped property: Id -> Id, type: Guid
11DBG: Mapped property: Name -> Name, type: String
12DBG: Mapping XML:
13<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"><class xmlns="urn:nhibernate-mapping-2.2" name="NHibernate.ConsoleTest.IProduct, NHibernate.ConsoleTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" table="tblProduct"><id name="Id" type="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"><column name="Id" /><generator class="assigned" /></id><property name="Name" type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"><column name="Name" /></property><property name="SKU" type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"><column name="SKU" /></property><property name="MSRP" type="System.Decimal, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"><column name="MSRP" /></property><many-to-one cascade="save-update" class="NHibernate.ConsoleTest.ICataglog, NHibernate.ConsoleTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="Catalog"><column name="Catalog_id" /></many-to-one></class></hibernate-mapping>
14INF: Using dialect: NHibernate.Dialect.SQLiteDialect
15INF: Mapping class: NHibernate.ConsoleTest.IProduct -> tblProduct
16DBG: Mapped property: Id -> Id, type: Guid
17DBG: Mapped property: Name -> Name, type: String
18DBG: Mapped property: SKU -> SKU, type: String
19DBG: Mapped property: MSRP -> MSRP, type: Decimal
20DBG: Mapped property: Catalog -> Catalog_id, type: NHibernate.ConsoleTest.ICataglog
21DBG: Mapping XML:
22<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"><class xmlns="urn:nhibernate-mapping-2.2" name="NHibernate.ConsoleTest.IOrder, NHibernate.ConsoleTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" table="tblOrder"><id name="Id" type="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"><column name="Id" /><generator class="assigned" /></id><bag cascade="all" name="Lines"><key><column name="Id" /></key><one-to-many class="NHibernate.ConsoleTest.IOrderLine, NHibernate.ConsoleTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" /></bag><property name="CreatedOn" type="System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"><column name="CreatedOn" /></property></class></hibernate-mapping>
23INF: Using dialect: NHibernate.Dialect.SQLiteDialect
24INF: Mapping class: NHibernate.ConsoleTest.IOrder -> tblOrder
25DBG: Mapped property: Id -> Id, type: Guid
26DBG: Mapped property: Lines, type: System.Collections.Generic.ICollection`1[[NHibernate.ConsoleTest.IOrderLine, NHibernate.ConsoleTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]](NHibernate.ConsoleTest.IOrder.Lines)
27DBG: Mapped property: CreatedOn -> CreatedOn, type: DateTime
28DBG: Mapping XML:
29<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"><class xmlns="urn:nhibernate-mapping-2.2" name="NHibernate.ConsoleTest.IOrderLine, NHibernate.ConsoleTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" table="tbOrderLine"><id name="Id" type="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"><column name="Id" /><generator class="assigned" /></id><property name="Qty" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"><column name="Qty" /></property><property name="Price" type="System.Decimal, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"><column name="Price" /></property><many-to-one cascade="save-update" class="NHibernate.ConsoleTest.IProduct, NHibernate.ConsoleTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" foreign-key="productId" name="Product" property-ref="Id"><column name="Product_id" /></many-to-one></class></hibernate-mapping>
30INF: Using dialect: NHibernate.Dialect.SQLiteDialect
31INF: Mapping class: NHibernate.ConsoleTest.IOrderLine -> tbOrderLine
32DBG: Mapped property: Id -> Id, type: Guid
33DBG: Mapped property: Qty -> Qty, type: Int32
34DBG: Mapped property: Price -> Price, type: Decimal
35DBG: Mapped property: Product -> Product_id, type: NHibernate.ConsoleTest.IProduct
36INF: Using dialect: NHibernate.Dialect.SQLiteDialect
37INF: checking mappings queue
38INF: processing one-to-many association mappings
39DBG: Second pass for collection: NHibernate.ConsoleTest.IOrder.Lines
40INF: mapping collection: NHibernate.ConsoleTest.IOrder.Lines -> tbOrderLine
41DBG: Mapped collection key: Id, one-to-many: NHibernate.ConsoleTest.IOrderLine
42INF: processing one-to-one association property references
43INF: processing foreign key constraints
44DBG: resolving reference to class: NHibernate.ConsoleTest.ICataglog
45DBG: resolving reference to class: NHibernate.ConsoleTest.IOrder
46DBG: resolving reference to class: NHibernate.ConsoleTest.IProduct
47INF: processing filters (second pass)
48INF: checking mappings queue
49INF: processing one-to-many association mappings
50INF: processing one-to-one association property references
51INF: processing foreign key constraints
52DBG: resolving reference to class: NHibernate.ConsoleTest.ICataglog
53DBG: resolving reference to class: NHibernate.ConsoleTest.IOrder
54DBG: resolving reference to class: NHibernate.ConsoleTest.IProduct
55INF: processing filters (second pass)
56INF: Using dialect: NHibernate.Dialect.SQLiteDialect
57INF: Using dialect: NHibernate.Dialect.SQLiteDialect
58INF: Using dialect: NHibernate.Dialect.SQLiteDialect
59INF: Using dialect: NHibernate.Dialect.SQLiteDialect
60INF: Using dialect: NHibernate.Dialect.SQLiteDialect
61INF: Using dialect: NHibernate.Dialect.SQLiteDialect
62INF: Using dialect: NHibernate.Dialect.SQLiteDialect
63INF: Using dialect: NHibernate.Dialect.SQLiteDialect
64INF: Using dialect: NHibernate.Dialect.SQLiteDialect
65INF: Using dialect: NHibernate.Dialect.SQLiteDialect
66INF: Using dialect: NHibernate.Dialect.SQLiteDialect
67INF: Using dialect: NHibernate.Dialect.SQLiteDialect
68INF: Using dialect: NHibernate.Dialect.SQLiteDialect
69INF: Initializing connection provider: NHibernate.Connection.DriverConnectionProvider
70INF: Configuring ConnectionProvider
71DBG: Obtaining DbConnection from Driver
72DBG:
73 PRAGMA foreign_keys = OFF
74DBG:
75 drop table if exists tblCatalog
76DBG:
77 drop table if exists tblProduct
78DBG:
79 drop table if exists tblOrder
80DBG:
81 drop table if exists tbOrderLine
82DBG:
83 PRAGMA foreign_keys = ON
84DBG:
85 create table tblCatalog (
86 Id UNIQUEIDENTIFIER not null,
87 Name TEXT,
88 primary key (Id)
89 )
90DBG:
91 create table tblProduct (
92 Id UNIQUEIDENTIFIER not null,
93 Name TEXT,
94 SKU TEXT,
95 MSRP NUMERIC,
96 Catalog_id UNIQUEIDENTIFIER,
97 primary key (Id),
98 constraint FKE86AD8E4B4933C7B foreign key (Catalog_id) references tblCatalog
99 )
100DBG:
101 create table tblOrder (
102 Id UNIQUEIDENTIFIER not null,
103 CreatedOn DATETIME,
104 primary key (Id)
105 )
106DBG:
107 create table tbOrderLine (
108 Id UNIQUEIDENTIFIER not null,
109 Qty INT,
110 Price NUMERIC,
111 Product_id UNIQUEIDENTIFIER,
112 primary key (Id),
113 constraint FKD5321C0E8B64AA46 foreign key (Id) references tblOrder,
114 constraint productId foreign key (Product_id) references tblProduct (Id)
115 )
116DBG: Closing connection
117DBG: Disposing of ConnectionProvider.
118INF: checking mappings queue
119INF: processing one-to-many association mappings
120INF: processing one-to-one association property references
121INF: processing foreign key constraints
122DBG: resolving reference to class: NHibernate.ConsoleTest.ICataglog
123DBG: resolving reference to class: NHibernate.ConsoleTest.IOrder
124DBG: resolving reference to class: NHibernate.ConsoleTest.IProduct
125INF: processing filters (second pass)
126INF: Using dialect: NHibernate.Dialect.SQLiteDialect
127INF: Using dialect: NHibernate.Dialect.SQLiteDialect
128INF: Using dialect defined converter
129INF: Generate SQL with comments: disabled
130INF: Initializing connection provider: NHibernate.Connection.DriverConnectionProvider
131INF: Configuring ConnectionProvider
132INF: Transaction factory: NHibernate.Transaction.AdoNetWithSystemTransactionFactory
133INF: Optimize cache for minimal puts: False
134INF: Connection release mode: auto
135INF: Default batch fetch size: 1
136INF: Statistics: disabled
137INF: Deleted entity synthetic identifier rollback: disabled
138INF: Query translator: NHibernate.Hql.Ast.ANTLR.ASTQueryTranslatorFactory
139INF: Query provider: NHibernate.Linq.DefaultQueryProvider
140INF: Query language substitutions: {'true'='1', 'false'='0'}
141INF: cache provider: NHibernate.Cache.NoCacheProvider, NHibernate, Version=5.0.0.0, Culture=neutral, PublicKeyToken=aa95f207798dfdb4
142INF: Order SQL inserts for batching: disabled
143INF: Order SQL updates for batching: disabled
144DBG: Wrap result sets: disabled
145DBG: Batch versioned data: disabled
146INF: Batcher factory: NHibernate.AdoNet.NonBatchingBatcherFactory, NHibernate, Version=5.0.0.0, Culture=neutral, PublicKeyToken=aa95f207798dfdb4
147INF: Default flush mode: Auto
148INF: Named query checking : enabled
149INF: building session factory
150DBG: Session factory constructed with filter configurations : {}
151DBG: instantiating session factory with properties: {'use_reflection_optimizer'='True', 'connection.provider'='NHibernate.Connection.DriverConnectionProvider', 'connection.driver_class'='NHibernate.Driver.SQLite20Driver, NHibernate, Version=5.0.0.0, Culture=neutral, PublicKeyToken=aa95f207798dfdb4', 'dialect'='NHibernate.Dialect.SQLiteDialect, NHibernate, Version=5.0.0.0, Culture=neutral, PublicKeyToken=aa95f207798dfdb4', 'hibernate.dialect'='NHibernate.Dialect.SQLiteDialect, NHibernate, Version=5.0.0.0, Culture=neutral, PublicKeyToken=aa95f207798dfdb4', 'query.substitutions'='true=1;false=0', 'connection.connection_string'='Data Source=test.db;Version=3;New=True;'}
152DBG: Obtaining DbConnection from Driver
153DBG: Closing connection
154INF: Using dialect: NHibernate.Dialect.SQLiteDialect
155DBG: No custom accessors found for entity: NHibernate.ConsoleTest.ICataglog
156DBG: Create Instantiator using optimizer for:NHibernate.ConsoleTest.ICataglog
157INF: Using dialect: NHibernate.Dialect.SQLiteDialect
158DBG: No custom accessors found for entity: NHibernate.ConsoleTest.IProduct
159DBG: Create Instantiator using optimizer for:NHibernate.ConsoleTest.IProduct
160INF: Using dialect: NHibernate.Dialect.SQLiteDialect
161DBG: No custom accessors found for entity: NHibernate.ConsoleTest.IOrder
162DBG: Create Instantiator using optimizer for:NHibernate.ConsoleTest.IOrder
163INF: Using dialect: NHibernate.Dialect.SQLiteDialect
164DBG: No custom accessors found for entity: NHibernate.ConsoleTest.IOrderLine
165DBG: Create Instantiator using optimizer for:NHibernate.ConsoleTest.IOrderLine
166DBG: Static SQL for collection: NHibernate.ConsoleTest.IOrder.Lines
167DBG: Row insert: UPDATE tbOrderLine SET Id = ? WHERE Id = ?
168DBG: Row delete: UPDATE tbOrderLine SET Id = null WHERE Id = ? AND Id = ?
169DBG: One-shot delete: UPDATE tbOrderLine SET Id = null WHERE Id = ?
170DBG: Static SQL for entity: NHibernate.ConsoleTest.ICataglog
171DBG: Version select: SELECT Id FROM tblCatalog WHERE Id = ?
172DBG: Snapshot select: SELECT icataglog_.Id, icataglog_.Name as name2_0_ FROM tblCatalog icataglog_ WHERE icataglog_.Id=?
173DBG: Insert 0: INSERT INTO tblCatalog (Name, Id) VALUES (?, ?)
174DBG: Update 0: UPDATE tblCatalog SET Name = ? WHERE Id = ?
175DBG: Delete 0: DELETE FROM tblCatalog WHERE Id = ?
176DBG: Static select for entity NHibernate.ConsoleTest.ICataglog: SELECT icataglog0_.Id as id1_0_0_, icataglog0_.Name as name2_0_0_ FROM tblCatalog icataglog0_ WHERE icataglog0_.Id=?
177DBG: Static select for entity NHibernate.ConsoleTest.ICataglog: SELECT icataglog0_.Id as id1_0_0_, icataglog0_.Name as name2_0_0_ FROM tblCatalog icataglog0_ WHERE icataglog0_.Id=?
178DBG: Static select for entity NHibernate.ConsoleTest.ICataglog: SELECT icataglog0_.Id as id1_0_0_, icataglog0_.Name as name2_0_0_ FROM tblCatalog icataglog0_ WHERE icataglog0_.Id=?
179DBG: Static select for entity NHibernate.ConsoleTest.ICataglog: SELECT icataglog0_.Id as id1_0_0_, icataglog0_.Name as name2_0_0_ FROM tblCatalog icataglog0_ WHERE icataglog0_.Id=?
180DBG: Static select for entity NHibernate.ConsoleTest.ICataglog: SELECT icataglog0_.Id as id1_0_0_, icataglog0_.Name as name2_0_0_ FROM tblCatalog icataglog0_ WHERE icataglog0_.Id=?
181DBG: Static select for action NHibernate.Engine.CascadingAction+MergeCascadingAction on entity NHibernate.ConsoleTest.ICataglog: SELECT icataglog0_.Id as id1_0_0_, icataglog0_.Name as name2_0_0_ FROM tblCatalog icataglog0_ WHERE icataglog0_.Id=?
182DBG: Static select for action NHibernate.Engine.CascadingAction+RefreshCascadingAction on entity NHibernate.ConsoleTest.ICataglog: SELECT icataglog0_.Id as id1_0_0_, icataglog0_.Name as name2_0_0_ FROM tblCatalog icataglog0_ WHERE icataglog0_.Id=?
183DBG: Static SQL for entity: NHibernate.ConsoleTest.IProduct
184DBG: Version select: SELECT Id FROM tblProduct WHERE Id = ?
185DBG: Snapshot select: SELECT iproduct_.Id, iproduct_.Name as name2_1_, iproduct_.SKU as sku3_1_, iproduct_.MSRP as msrp4_1_, iproduct_.Catalog_id as catalog5_1_ FROM tblProduct iproduct_ WHERE iproduct_.Id=?
186DBG: Insert 0: INSERT INTO tblProduct (Name, SKU, MSRP, Catalog_id, Id) VALUES (?, ?, ?, ?, ?)
187DBG: Update 0: UPDATE tblProduct SET Name = ?, SKU = ?, MSRP = ?, Catalog_id = ? WHERE Id = ?
188DBG: Delete 0: DELETE FROM tblProduct WHERE Id = ?
189DBG: Static select for entity NHibernate.ConsoleTest.IProduct: SELECT iproduct0_.Id as id1_1_0_, iproduct0_.Name as name2_1_0_, iproduct0_.SKU as sku3_1_0_, iproduct0_.MSRP as msrp4_1_0_, iproduct0_.Catalog_id as catalog5_1_0_ FROM tblProduct iproduct0_ WHERE iproduct0_.Id=?
190DBG: Static select for entity NHibernate.ConsoleTest.IProduct: SELECT iproduct0_.Id as id1_1_0_, iproduct0_.Name as name2_1_0_, iproduct0_.SKU as sku3_1_0_, iproduct0_.MSRP as msrp4_1_0_, iproduct0_.Catalog_id as catalog5_1_0_ FROM tblProduct iproduct0_ WHERE iproduct0_.Id=?
191DBG: Static select for entity NHibernate.ConsoleTest.IProduct: SELECT iproduct0_.Id as id1_1_0_, iproduct0_.Name as name2_1_0_, iproduct0_.SKU as sku3_1_0_, iproduct0_.MSRP as msrp4_1_0_, iproduct0_.Catalog_id as catalog5_1_0_ FROM tblProduct iproduct0_ WHERE iproduct0_.Id=?
192DBG: Static select for entity NHibernate.ConsoleTest.IProduct: SELECT iproduct0_.Id as id1_1_0_, iproduct0_.Name as name2_1_0_, iproduct0_.SKU as sku3_1_0_, iproduct0_.MSRP as msrp4_1_0_, iproduct0_.Catalog_id as catalog5_1_0_ FROM tblProduct iproduct0_ WHERE iproduct0_.Id=?
193DBG: Static select for entity NHibernate.ConsoleTest.IProduct: SELECT iproduct0_.Id as id1_1_0_, iproduct0_.Name as name2_1_0_, iproduct0_.SKU as sku3_1_0_, iproduct0_.MSRP as msrp4_1_0_, iproduct0_.Catalog_id as catalog5_1_0_ FROM tblProduct iproduct0_ WHERE iproduct0_.Id=?
194DBG: Static select for action NHibernate.Engine.CascadingAction+MergeCascadingAction on entity NHibernate.ConsoleTest.IProduct: SELECT iproduct0_.Id as id1_1_0_, iproduct0_.Name as name2_1_0_, iproduct0_.SKU as sku3_1_0_, iproduct0_.MSRP as msrp4_1_0_, iproduct0_.Catalog_id as catalog5_1_0_ FROM tblProduct iproduct0_ WHERE iproduct0_.Id=?
195DBG: Static select for action NHibernate.Engine.CascadingAction+RefreshCascadingAction on entity NHibernate.ConsoleTest.IProduct: SELECT iproduct0_.Id as id1_1_0_, iproduct0_.Name as name2_1_0_, iproduct0_.SKU as sku3_1_0_, iproduct0_.MSRP as msrp4_1_0_, iproduct0_.Catalog_id as catalog5_1_0_ FROM tblProduct iproduct0_ WHERE iproduct0_.Id=?
196DBG: Static SQL for entity: NHibernate.ConsoleTest.IOrder
197DBG: Version select: SELECT Id FROM tblOrder WHERE Id = ?
198DBG: Snapshot select: SELECT iorder_.Id, iorder_.CreatedOn as createdon2_2_ FROM tblOrder iorder_ WHERE iorder_.Id=?
199DBG: Insert 0: INSERT INTO tblOrder (CreatedOn, Id) VALUES (?, ?)
200DBG: Update 0: UPDATE tblOrder SET CreatedOn = ? WHERE Id = ?
201DBG: Delete 0: DELETE FROM tblOrder WHERE Id = ?
202DBG: Static select for entity NHibernate.ConsoleTest.IOrder: SELECT iorder0_.Id as id1_2_0_, iorder0_.CreatedOn as createdon2_2_0_ FROM tblOrder iorder0_ WHERE iorder0_.Id=?
203DBG: Static select for entity NHibernate.ConsoleTest.IOrder: SELECT iorder0_.Id as id1_2_0_, iorder0_.CreatedOn as createdon2_2_0_ FROM tblOrder iorder0_ WHERE iorder0_.Id=?
204DBG: Static select for entity NHibernate.ConsoleTest.IOrder: SELECT iorder0_.Id as id1_2_0_, iorder0_.CreatedOn as createdon2_2_0_ FROM tblOrder iorder0_ WHERE iorder0_.Id=?
205DBG: Static select for entity NHibernate.ConsoleTest.IOrder: SELECT iorder0_.Id as id1_2_0_, iorder0_.CreatedOn as createdon2_2_0_ FROM tblOrder iorder0_ WHERE iorder0_.Id=?
206DBG: Static select for entity NHibernate.ConsoleTest.IOrder: SELECT iorder0_.Id as id1_2_0_, iorder0_.CreatedOn as createdon2_2_0_ FROM tblOrder iorder0_ WHERE iorder0_.Id=?
207DBG: Static select for action NHibernate.Engine.CascadingAction+MergeCascadingAction on entity NHibernate.ConsoleTest.IOrder: SELECT iorder0_.Id as id1_2_1_, iorder0_.CreatedOn as createdon2_2_1_, lines1_.Id as id1_3_3_, lines1_.Id as id1_3_0_, lines1_.Qty as qty2_3_0_, lines1_.Price as price3_3_0_, lines1_.Product_id as product4_3_0_ FROM tblOrder iorder0_ left outer join tbOrderLine lines1_ on iorder0_.Id=lines1_.Id WHERE iorder0_.Id=?
208DBG: Static select for action NHibernate.Engine.CascadingAction+RefreshCascadingAction on entity NHibernate.ConsoleTest.IOrder: SELECT iorder0_.Id as id1_2_1_, iorder0_.CreatedOn as createdon2_2_1_, lines1_.Id as id1_3_3_, lines1_.Id as id1_3_0_, lines1_.Qty as qty2_3_0_, lines1_.Price as price3_3_0_, lines1_.Product_id as product4_3_0_ FROM tblOrder iorder0_ left outer join tbOrderLine lines1_ on iorder0_.Id=lines1_.Id WHERE iorder0_.Id=?
209DBG: Static SQL for entity: NHibernate.ConsoleTest.IOrderLine
210DBG: Version select: SELECT Id FROM tbOrderLine WHERE Id = ?
211DBG: Snapshot select: SELECT iorderline_.Id, iorderline_.Qty as qty2_3_, iorderline_.Price as price3_3_, iorderline_.Product_id as product4_3_ FROM tbOrderLine iorderline_ WHERE iorderline_.Id=?
212DBG: Insert 0: INSERT INTO tbOrderLine (Qty, Price, Product_id, Id) VALUES (?, ?, ?, ?)
213DBG: Update 0: UPDATE tbOrderLine SET Qty = ?, Price = ?, Product_id = ? WHERE Id = ?
214DBG: Delete 0: DELETE FROM tbOrderLine WHERE Id = ?
215DBG: Static select for entity NHibernate.ConsoleTest.IOrderLine: SELECT iorderline0_.Id as id1_3_0_, iorderline0_.Qty as qty2_3_0_, iorderline0_.Price as price3_3_0_, iorderline0_.Product_id as product4_3_0_ FROM tbOrderLine iorderline0_ WHERE iorderline0_.Id=?
216DBG: Static select for entity NHibernate.ConsoleTest.IOrderLine: SELECT iorderline0_.Id as id1_3_0_, iorderline0_.Qty as qty2_3_0_, iorderline0_.Price as price3_3_0_, iorderline0_.Product_id as product4_3_0_ FROM tbOrderLine iorderline0_ WHERE iorderline0_.Id=?
217DBG: Static select for entity NHibernate.ConsoleTest.IOrderLine: SELECT iorderline0_.Id as id1_3_0_, iorderline0_.Qty as qty2_3_0_, iorderline0_.Price as price3_3_0_, iorderline0_.Product_id as product4_3_0_ FROM tbOrderLine iorderline0_ WHERE iorderline0_.Id=?
218DBG: Static select for entity NHibernate.ConsoleTest.IOrderLine: SELECT iorderline0_.Id as id1_3_0_, iorderline0_.Qty as qty2_3_0_, iorderline0_.Price as price3_3_0_, iorderline0_.Product_id as product4_3_0_ FROM tbOrderLine iorderline0_ WHERE iorderline0_.Id=?
219DBG: Static select for entity NHibernate.ConsoleTest.IOrderLine: SELECT iorderline0_.Id as id1_3_0_, iorderline0_.Qty as qty2_3_0_, iorderline0_.Price as price3_3_0_, iorderline0_.Product_id as product4_3_0_ FROM tbOrderLine iorderline0_ WHERE iorderline0_.Id=?
220DBG: Static select for action NHibernate.Engine.CascadingAction+MergeCascadingAction on entity NHibernate.ConsoleTest.IOrderLine: SELECT iorderline0_.Id as id1_3_0_, iorderline0_.Qty as qty2_3_0_, iorderline0_.Price as price3_3_0_, iorderline0_.Product_id as product4_3_0_ FROM tbOrderLine iorderline0_ WHERE iorderline0_.Id=?
221DBG: Static select for action NHibernate.Engine.CascadingAction+RefreshCascadingAction on entity NHibernate.ConsoleTest.IOrderLine: SELECT iorderline0_.Id as id1_3_0_, iorderline0_.Qty as qty2_3_0_, iorderline0_.Price as price3_3_0_, iorderline0_.Product_id as product4_3_0_ FROM tbOrderLine iorderline0_ WHERE iorderline0_.Id=?
222DBG: Static select for one-to-many NHibernate.ConsoleTest.IOrder.Lines: SELECT lines0_.Id as id1_3_1_, lines0_.Id as id1_3_0_, lines0_.Qty as qty2_3_0_, lines0_.Price as price3_3_0_, lines0_.Product_id as product4_3_0_ FROM tbOrderLine lines0_ WHERE lines0_.Id=?
223DBG: initializing class SessionFactoryObjectFactory
224DBG: registered: 91098ceea9a442d688d4c88722dcf786(unnamed)
225INF: no name configured
226DBG: Instantiated session factory
227DBG: Checking 0 named HQL queries
228DBG: Checking 0 named SQL queries
229Opening Session
230DBG: Opening Hibernate Session.
231DBG: [session-id=e4fb84ae-b37e-4f58-9208-16c36b3b4141] opened session at timestamp: 636545480406, for session factory: [/91098ceea9a442d688d4c88722dcf786]
232Starting Transaction
233DBG: Begin (Unspecified)
234DBG: Obtaining DbConnection from Driver
235Saving Product
236DBG: saving transient instance
237DBG: generated identifier: 473e301d-1f09-49f8-86ec-be710caf7fdd, using strategy: NHibernate.Id.Assigned
238DBG: saving [NHibernate.ConsoleTest.IOrder#473e301d-1f09-49f8-86ec-be710caf7fdd]
239INF: processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: NHibernate.ConsoleTest.IOrder
240INF: done processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: NHibernate.ConsoleTest.IOrder
241DBG: Wrapped collection in role: NHibernate.ConsoleTest.IOrder.Lines
242INF: processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: NHibernate.ConsoleTest.IOrder
243INF: cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for collection: NHibernate.ConsoleTest.IOrder.Lines
244DBG: cascading to saveOrUpdate: NHibernate.ConsoleTest.IOrderLine
245DBG: id unsaved-value strategy UNDEFINED
246WRN: Unable to determine if NHibernate.ConsoleTest.OrderLine with assigned identifier 676d8505-ed65-42a3-a225-7612b0c37597 is transient or detached; querying the database. Use explicit Save() or Update() in session to prevent this.
247DBG: Getting current persistent state for: [NHibernate.ConsoleTest.IOrderLine#676d8505-ed65-42a3-a225-7612b0c37597]
248DBG: Opened new DbCommand, open DbCommands: 1
249DBG: Building an DbCommand object for the SqlString: SELECT iorderline_.Id, iorderline_.Qty as qty2_3_, iorderline_.Price as price3_3_, iorderline_.Product_id as product4_3_ FROM tbOrderLine iorderline_ WHERE iorderline_.Id=?
250DBG: binding '676d8505-ed65-42a3-a225-7612b0c37597' to parameter: 0
251DBG: SELECT iorderline_.Id, iorderline_.Qty as qty2_3_, iorderline_.Price as price3_3_, iorderline_.Product_id as product4_3_ FROM tbOrderLine iorderline_ WHERE iorderline_.Id=@p0;@p0 = 676d8505-ed65-42a3-a225-7612b0c37597 [Type: Guid (0:0:0)]
252DBG: Enlist Command
253DBG: ExecuteReader took 6 ms
254DBG: Opened DbDataReader, open DbDataReaders: 1
255DBG: Closed DbDataReader, open DbDataReaders :0
256DBG: DataReader was closed after 10 ms
257DBG: Closed DbCommand, open DbCommands: 0
258DBG: transient instance of: NHibernate.ConsoleTest.IOrderLine
259DBG: saving transient instance
260DBG: generated identifier: 676d8505-ed65-42a3-a225-7612b0c37597, using strategy: NHibernate.Id.Assigned
261DBG: saving [NHibernate.ConsoleTest.IOrderLine#676d8505-ed65-42a3-a225-7612b0c37597]
262INF: processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: NHibernate.ConsoleTest.IOrderLine
263DBG: cascading to saveOrUpdate: NHibernate.ConsoleTest.IProduct
264DBG: id unsaved-value strategy UNDEFINED
265WRN: Unable to determine if NHibernate.ConsoleTest.Product with assigned identifier aaa2484f-1430-45ce-9d9f-554e3b97ffe7 is transient or detached; querying the database. Use explicit Save() or Update() in session to prevent this.
266DBG: Getting current persistent state for: [NHibernate.ConsoleTest.IProduct#aaa2484f-1430-45ce-9d9f-554e3b97ffe7]
267DBG: Opened new DbCommand, open DbCommands: 1
268DBG: Building an DbCommand object for the SqlString: SELECT iproduct_.Id, iproduct_.Name as name2_1_, iproduct_.SKU as sku3_1_, iproduct_.MSRP as msrp4_1_, iproduct_.Catalog_id as catalog5_1_ FROM tblProduct iproduct_ WHERE iproduct_.Id=?
269DBG: binding 'aaa2484f-1430-45ce-9d9f-554e3b97ffe7' to parameter: 0
270DBG: SELECT iproduct_.Id, iproduct_.Name as name2_1_, iproduct_.SKU as sku3_1_, iproduct_.MSRP as msrp4_1_, iproduct_.Catalog_id as catalog5_1_ FROM tblProduct iproduct_ WHERE iproduct_.Id=@p0;@p0 = aaa2484f-1430-45ce-9d9f-554e3b97ffe7 [Type: Guid (0:0:0)]
271DBG: Enlist Command
272DBG: ExecuteReader took 0 ms
273DBG: Opened DbDataReader, open DbDataReaders: 1
274DBG: Closed DbDataReader, open DbDataReaders :0
275DBG: DataReader was closed after 3 ms
276DBG: Closed DbCommand, open DbCommands: 0
277DBG: transient instance of: NHibernate.ConsoleTest.IProduct
278DBG: saving transient instance
279DBG: generated identifier: aaa2484f-1430-45ce-9d9f-554e3b97ffe7, using strategy: NHibernate.Id.Assigned
280DBG: saving [NHibernate.ConsoleTest.IProduct#aaa2484f-1430-45ce-9d9f-554e3b97ffe7]
281INF: processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: NHibernate.ConsoleTest.IProduct
282DBG: cascading to saveOrUpdate: NHibernate.ConsoleTest.ICataglog
283DBG: id unsaved-value strategy UNDEFINED
284WRN: Unable to determine if NHibernate.ConsoleTest.Catalog with assigned identifier a1cc8b2b-0bdd-4412-8a47-fa9a52ce15cd is transient or detached; querying the database. Use explicit Save() or Update() in session to prevent this.
285DBG: Getting current persistent state for: [NHibernate.ConsoleTest.ICataglog#a1cc8b2b-0bdd-4412-8a47-fa9a52ce15cd]
286DBG: Opened new DbCommand, open DbCommands: 1
287DBG: Building an DbCommand object for the SqlString: SELECT icataglog_.Id, icataglog_.Name as name2_0_ FROM tblCatalog icataglog_ WHERE icataglog_.Id=?
288DBG: binding 'a1cc8b2b-0bdd-4412-8a47-fa9a52ce15cd' to parameter: 0
289DBG: SELECT icataglog_.Id, icataglog_.Name as name2_0_ FROM tblCatalog icataglog_ WHERE icataglog_.Id=@p0;@p0 = a1cc8b2b-0bdd-4412-8a47-fa9a52ce15cd [Type: Guid (0:0:0)]
290DBG: Enlist Command
291DBG: ExecuteReader took 0 ms
292DBG: Opened DbDataReader, open DbDataReaders: 1
293DBG: Closed DbDataReader, open DbDataReaders :0
294DBG: DataReader was closed after 5 ms
295DBG: Closed DbCommand, open DbCommands: 0
296DBG: transient instance of: NHibernate.ConsoleTest.ICataglog
297DBG: saving transient instance
298DBG: generated identifier: a1cc8b2b-0bdd-4412-8a47-fa9a52ce15cd, using strategy: NHibernate.Id.Assigned
299DBG: saving [NHibernate.ConsoleTest.ICataglog#a1cc8b2b-0bdd-4412-8a47-fa9a52ce15cd]
300INF: done processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: NHibernate.ConsoleTest.IProduct
301INF: processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: NHibernate.ConsoleTest.IProduct
302INF: done processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: NHibernate.ConsoleTest.IProduct
303INF: done processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: NHibernate.ConsoleTest.IOrderLine
304INF: processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: NHibernate.ConsoleTest.IOrderLine
305INF: done processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: NHibernate.ConsoleTest.IOrderLine
306INF: done cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for collection: NHibernate.ConsoleTest.IOrder.Lines
307INF: done processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: NHibernate.ConsoleTest.IOrder
308DBG: Start Commit
309DBG: before transaction completion
310DBG: flushing session
311DBG: processing flush-time cascades
312INF: processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: NHibernate.ConsoleTest.IOrder
313INF: cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for collection: NHibernate.ConsoleTest.IOrder.Lines
314DBG: cascading to saveOrUpdate: NHibernate.ConsoleTest.IOrderLine
315DBG: persistent instance of: NHibernate.ConsoleTest.IOrderLine
316DBG: ignoring persistent instance
317DBG: object already associated with session: [NHibernate.ConsoleTest.IOrderLine#676d8505-ed65-42a3-a225-7612b0c37597]
318INF: done cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for collection: NHibernate.ConsoleTest.IOrder.Lines
319INF: done processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: NHibernate.ConsoleTest.IOrder
320INF: processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: NHibernate.ConsoleTest.IProduct
321DBG: cascading to saveOrUpdate: NHibernate.ConsoleTest.ICataglog
322DBG: persistent instance of: NHibernate.ConsoleTest.ICataglog
323DBG: ignoring persistent instance
324DBG: object already associated with session: [NHibernate.ConsoleTest.ICataglog#a1cc8b2b-0bdd-4412-8a47-fa9a52ce15cd]
325INF: done processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: NHibernate.ConsoleTest.IProduct
326INF: processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: NHibernate.ConsoleTest.IOrderLine
327DBG: cascading to saveOrUpdate: NHibernate.ConsoleTest.IProduct
328DBG: persistent instance of: NHibernate.ConsoleTest.IProduct
329DBG: ignoring persistent instance
330DBG: object already associated with session: [NHibernate.ConsoleTest.IProduct#aaa2484f-1430-45ce-9d9f-554e3b97ffe7]
331INF: done processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: NHibernate.ConsoleTest.IOrderLine
332DBG: dirty checking collections
333DBG: Flushing entities and processing referenced collections
334DBG: Collection found: [NHibernate.ConsoleTest.IOrder.Lines#473e301d-1f09-49f8-86ec-be710caf7fdd], was: [<unreferenced>] (initialized)
335DBG: Processing unreferenced collections
336DBG: Scheduling collection removes/(re)creates/updates
337DBG: Flushed: 4 insertions, 0 updates, 0 deletions to 4 objects
338DBG: Flushed: 1 (re)creations, 0 updates, 0 removals to 1 collections
339DBG: listing entities:
340DBG: NHibernate.ConsoleTest.Order
341DBG: NHibernate.ConsoleTest.Catalog
342DBG: NHibernate.ConsoleTest.Product
343DBG: NHibernate.ConsoleTest.OrderLine
344DBG: executing flush
345DBG: Registering flush begin
346DBG: Inserting entity: [NHibernate.ConsoleTest.IOrder#473e301d-1f09-49f8-86ec-be710caf7fdd]
347DBG: Opened new DbCommand, open DbCommands: 1
348DBG: Building an DbCommand object for the SqlString: INSERT INTO tblOrder (CreatedOn, Id) VALUES (?, ?)
349DBG: Dehydrating entity: [NHibernate.ConsoleTest.IOrder#473e301d-1f09-49f8-86ec-be710caf7fdd]
350DBG: binding '2/18/2018 10:53:56 AM' to parameter: 0
351DBG: binding '473e301d-1f09-49f8-86ec-be710caf7fdd' to parameter: 1
352DBG: INSERT INTO tblOrder (CreatedOn, Id) VALUES (@p0, @p1);@p0 = 2018-02-18T10:53:56.8802275-05:00 [Type: DateTime (0:0:0)], @p1 = 473e301d-1f09-49f8-86ec-be710caf7fdd [Type: Guid (0:0:0)]
353DBG: Enlist Command
354DBG: ExecuteNonQuery took 7 ms
355DBG: Inserting entity: [NHibernate.ConsoleTest.ICataglog#a1cc8b2b-0bdd-4412-8a47-fa9a52ce15cd]
356DBG: ExecuteBatch for 1 statements took 0 ms
357DBG: Closed DbCommand, open DbCommands: 0
358DBG: Opened new DbCommand, open DbCommands: 1
359DBG: Building an DbCommand object for the SqlString: INSERT INTO tblCatalog (Name, Id) VALUES (?, ?)
360DBG: Dehydrating entity: [NHibernate.ConsoleTest.ICataglog#a1cc8b2b-0bdd-4412-8a47-fa9a52ce15cd]
361DBG: binding 'Catalog 1' to parameter: 0
362DBG: binding 'a1cc8b2b-0bdd-4412-8a47-fa9a52ce15cd' to parameter: 1
363DBG: INSERT INTO tblCatalog (Name, Id) VALUES (@p0, @p1);@p0 = 'Catalog 1' [Type: String (0:0:0)], @p1 = a1cc8b2b-0bdd-4412-8a47-fa9a52ce15cd [Type: Guid (0:0:0)]
364DBG: Enlist Command
365DBG: ExecuteNonQuery took 1 ms
366DBG: Inserting entity: [NHibernate.ConsoleTest.IProduct#aaa2484f-1430-45ce-9d9f-554e3b97ffe7]
367DBG: ExecuteBatch for 1 statements took 0 ms
368DBG: Closed DbCommand, open DbCommands: 0
369DBG: Opened new DbCommand, open DbCommands: 1
370DBG: Building an DbCommand object for the SqlString: INSERT INTO tblProduct (Name, SKU, MSRP, Catalog_id, Id) VALUES (?, ?, ?, ?, ?)
371DBG: Dehydrating entity: [NHibernate.ConsoleTest.IProduct#aaa2484f-1430-45ce-9d9f-554e3b97ffe7]
372DBG: binding 'Sample Product' to parameter: 0
373DBG: binding '123456789' to parameter: 1
374DBG: binding '1' to parameter: 2
375DBG: binding 'a1cc8b2b-0bdd-4412-8a47-fa9a52ce15cd' to parameter: 3
376DBG: binding 'aaa2484f-1430-45ce-9d9f-554e3b97ffe7' to parameter: 4
377DBG: INSERT INTO tblProduct (Name, SKU, MSRP, Catalog_id, Id) VALUES (@p0, @p1, @p2, @p3, @p4);@p0 = 'Sample Product' [Type: String (0:0:0)], @p1 = '123456789' [Type: String (0:0:0)], @p2 = 1 [Type: Decimal (0:0:0)], @p3 = a1cc8b2b-0bdd-4412-8a47-fa9a52ce15cd [Type: Guid (0:0:0)], @p4 = aaa2484f-1430-45ce-9d9f-554e3b97ffe7 [Type: Guid (0:0:0)]
378DBG: Enlist Command
379DBG: ExecuteNonQuery took 0 ms
380DBG: Inserting entity: [NHibernate.ConsoleTest.IOrderLine#676d8505-ed65-42a3-a225-7612b0c37597]
381DBG: ExecuteBatch for 1 statements took 0 ms
382DBG: Closed DbCommand, open DbCommands: 0
383DBG: Opened new DbCommand, open DbCommands: 1
384DBG: Building an DbCommand object for the SqlString: INSERT INTO tbOrderLine (Qty, Price, Product_id, Id) VALUES (?, ?, ?, ?)
385DBG: Dehydrating entity: [NHibernate.ConsoleTest.IOrderLine#676d8505-ed65-42a3-a225-7612b0c37597]
386DBG: binding '1' to parameter: 0
387DBG: binding '1' to parameter: 1
388DBG: Closed DbCommand, open DbCommands: 0
389ERR: NHibernate.PropertyValueException: Error dehydrating property value for NHibernate.ConsoleTest.IOrderLine.Product ---> NHibernate.HibernateException: Unable to resolve property: Id
390 at NHibernate.Tuple.Entity.EntityMetamodel.GetPropertyIndex(String propertyName)
391 at NHibernate.Tuple.Entity.AbstractEntityTuplizer.GetPropertyValue(Object entity, String propertyPath)
392 at NHibernate.Persister.Entity.AbstractEntityPersister.GetPropertyValue(Object obj, String propertyName)
393 at NHibernate.Type.EntityType.GetReferenceValue(Object value, ISessionImplementor session)
394 at NHibernate.Type.ManyToOneType.NullSafeSet(DbCommand st, Object value, Int32 index, Boolean[] settable, ISessionImplementor session)
395 at NHibernate.Persister.Entity.AbstractEntityPersister.Dehydrate(Object id, Object[] fields, Object rowId, Boolean[] includeProperty, Boolean[][] includeColumns, Int32 table, DbCommand statement, ISessionImplementor session, Int32 index)
396 --- End of inner exception stack trace ---
397 at NHibernate.Persister.Entity.AbstractEntityPersister.Dehydrate(Object id, Object[] fields, Object rowId, Boolean[] includeProperty, Boolean[][] includeColumns, Int32 table, DbCommand statement, ISessionImplementor session, Int32 index)
398 at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session)
399 at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session)
400 at NHibernate.Action.EntityInsertAction.Execute()
401 at NHibernate.Engine.ActionQueue.Execute(IExecutable executable)
402 at NHibernate.Engine.ActionQueue.ExecuteActions(IList list)
403 at NHibernate.Engine.ActionQueue.ExecuteActions()
404 at NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session)
405ERR: Could not synchronize database state with session
406DBG: Registering flush end
407DBG: DbTransaction disposed.
408DBG: Aggressively releasing database connection
409DBG: Closing connection
410DBG: transaction completion
411DBG: [session-id=e4fb84ae-b37e-4f58-9208-16c36b3b4141] running ISession.Dispose()
412DBG: [session-id=e4fb84ae-b37e-4f58-9208-16c36b3b4141] executing real Dispose(True)
413DBG: closing session
414DBG: running BatcherImpl.Dispose(true)
415Exception: NHibernate.PropertyValueException: Error dehydrating property value for NHibernate.ConsoleTest.IOrderLine.Product ---> NHibernate.HibernateException: Unable to resolve property: Id
416 at NHibernate.Tuple.Entity.EntityMetamodel.GetPropertyIndex(String propertyName)
417 at NHibernate.Tuple.Entity.AbstractEntityTuplizer.GetPropertyValue(Object entity, String propertyPath)
418 at NHibernate.Persister.Entity.AbstractEntityPersister.GetPropertyValue(Object obj, String propertyName)
419 at NHibernate.Type.EntityType.GetReferenceValue(Object value, ISessionImplementor session)
420 at NHibernate.Type.ManyToOneType.NullSafeSet(DbCommand st, Object value, Int32 index, Boolean[] settable, ISessionImplementor session)
421 at NHibernate.Persister.Entity.AbstractEntityPersister.Dehydrate(Object id, Object[] fields, Object rowId, Boolean[] includeProperty, Boolean[][] includeColumns, Int32 table, DbCommand statement, ISessionImplementor session, Int32 index)
422 --- End of inner exception stack trace ---
423 at NHibernate.Persister.Entity.AbstractEntityPersister.Dehydrate(Object id, Object[] fields, Object rowId, Boolean[] includeProperty, Boolean[][] includeColumns, Int32 table, DbCommand statement, ISessionImplementor session, Int32 index)
424 at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session)
425 at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session)
426 at NHibernate.Action.EntityInsertAction.Execute()
427 at NHibernate.Engine.ActionQueue.Execute(IExecutable executable)
428 at NHibernate.Engine.ActionQueue.ExecuteActions(IList list)
429 at NHibernate.Engine.ActionQueue.ExecuteActions()
430 at NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session)
431 at NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent event)
432 at NHibernate.Impl.SessionImpl.Flush()
433 at NHibernate.Impl.SessionImpl.FlushBeforeTransactionCompletion()
434 at NHibernate.Impl.SessionImpl.BeforeTransactionCompletion(ITransaction tx)
435 at NHibernate.Transaction.AdoTransaction.Commit()
436 at NHibernate.ConsoleTest.Program.Main(String[] args) in E:\Projects\NHibernate.ConsoleTest\Program.cs:line 38
437InnerException: NHibernate.HibernateException: Unable to resolve property: Id
438 at NHibernate.Tuple.Entity.EntityMetamodel.GetPropertyIndex(String propertyName)
439 at NHibernate.Tuple.Entity.AbstractEntityTuplizer.GetPropertyValue(Object entity, String propertyPath)
440 at NHibernate.Persister.Entity.AbstractEntityPersister.GetPropertyValue(Object obj, String propertyName)
441 at NHibernate.Type.EntityType.GetReferenceValue(Object value, ISessionImplementor session)
442 at NHibernate.Type.ManyToOneType.NullSafeSet(DbCommand st, Object value, Int32 index, Boolean[] settable, ISessionImplementor session)
443 at NHibernate.Persister.Entity.AbstractEntityPersister.Dehydrate(Object id, Object[] fields, Object rowId, Boolean[] includeProperty, Boolean[][] includeColumns, Int32 table, DbCommand statement, ISessionImplementor session, Int32 index)
444Press <ENTER> to exit....