Exemplo n.º 1
0
        public static IList FindBySql(String sql, Type type)
        {
            IDatabaseDialect dialect = Entity.GetInfo(type).Dialect;

            sql = dialect.GetLimit(sql);

            logger.Info(String.Format("{0}[FindBySql]{1}", LoggerUtil.SqlPrefix, sql));

            ObjectInfo state = new ObjectInfo(type);  // EntityFactory.New( type.FullName ).state;

            state.Includer.IncludeAll();
            return(EntityPropertyUtil.FindList(state, sql));
        }