migrate NHiberate to EntityFramework6