Moved to fluent. Added support for Modifiers. Fixtures to load intial test data
This commit is contained in:
1 parent
c841dc25f4
commit
eb48c3754a
272 files changed
+10470
-47160
No files matched your search
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using FluentNHibernate.Conventions;
|
||||
using FluentNHibernate.Conventions.Instances;
|
||||
using NHibernate;
|
||||
using NHibernate.SqlCommand;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Tanshu.Accounts.SqlDAO
|
||||
{
|
||||
public static class QueryStore
|
||||
{
|
||||
private static string query;
|
||||
public static string Query
|
||||
{
|
||||
get
|
||||
{
|
||||
return query;
|
||||
}
|
||||
set
|
||||
{
|
||||
query = value;
|
||||
Debug.Write(query);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class NHSQLInterceptor : EmptyInterceptor, IInterceptor
|
||||
{
|
||||
SqlString
|
||||
IInterceptor.OnPrepareStatement
|
||||
(SqlString sql)
|
||||
{
|
||||
QueryStore.Query = sql.ToString();
|
||||
return sql;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user