Esempio n. 1
0
        internal static DbTable <T> MockTempTable <T>(this SqlSession sqlSession, IList <SqlCommand> commands, T fromModel = null, Action <T> initializer = null)
            where T : Model, new()
        {
            var result = sqlSession.MockTempTable <T>(fromModel, initializer);

            commands.Add(sqlSession.GetCreateTableCommand(result.Model, true));
            return(result);
        }