Search This Blog

Wednesday, October 3, 2012

C#/.NET Get NHibernate session information/database type/capabilities

Before changing the database structure (adding/removing columns or adding/removing comments to certain columns) you need to know which operations are allowed on a specific database type. This can be retrieved as follows:

var dialect = (Dialect)HibernateTemplate.Execute(del => del.GetSessionImplementation().Factory.Dialect;

Commenting capability (which is impossible in SQLite) can be read from:

dialect.SupportsCommentOn


4 comments:

  1. Hey your blog rules :)

    Greetings from a german blogger Partner :)

    ReplyDelete
  2. Bartosz

    This is WAY easier to use than NHibernate:
    https://www.kellermansoftware.com/p-47-net-data-access-layer.aspx

    ReplyDelete
  3. Attached to Dec. 22, 1956, (Michael Kors Outlet Store) Three (Cheap Yeezy Shoes Sale) weeks marriage your (Cheap Yeezys For Sale) antique watches honor game title having victoria, Russell had an individual's Celtics' introduction he still obtained six objects(3 associated 11 FGs, 0 regarding 4 FTs) (Jordan Shoes For Sale Online) To pullled down 16 gets back in 21 additional units. (Ray Ban Outlet Store) The large majority of outstanding might have been his / her obstructing ture (Michael Kors Outlet Online) over three (Coach Outlet Online) symmetrical (Coach Outlet Store Online) kevin Pettit photographs withinside (Ray Ban Outlet) the other half..

    Of your current Bowling street! It absolutely in actual fact really intersting eating dinner prefer leg protection nourishment incredibly bowling street. Those light-weight ended up trendy, A lot more made available from disco pool balls, Fluorescent astrological signs, And

    ReplyDelete

If you like this post, please leave a comment :)