narsil/Tanshu.Accounts.Repository/Fluent/QueryStore.cs
unknown d8ecec8bb6 Added inverse Attribute to ProductGroup.
BillInventory Renamed.
Refactored Bill to be more usable.
Added Bill Detail Report.
Added Open Bill and Bill Details Roles.
Zero Rate Products have Yellow background Color.
Refactored UserBI, FoodTableBI, ModifierBI, PrintLocationBI, ProductBI, ProductGroupBI, TaxBI, UserBI,
Cached the Products List.
Product and Product Group Form Working.
2011-06-23 18:17:48 +05:30

33 lines
674 B
C#

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;
}
}
}