Problem in compiling ORM enabled projects

Thread is closed for posting
2 posts, 0 answers
  1. Wong Chi Chong
    Wong Chi Chong avatar
    2 posts
    Member since:
    Mar 2004

    Posted 09 Feb 2010 Link to this post

    Hi,

    When I try to compile any ORM enabled projects with the following non persistent class:

        public static class S
        {
            public static InstanceType Random<FilterType, InstanceType>(object ctx)
            {
                //return default(InstanceType);
                return Random<FilterType>().Random<InstanceType>(ctx);
            }
            public static R RandomOutput<T, R>(object ctx)
            {
                return default(R);
            }

            public static Type Random<T>()
            {
                return null;
            }
            public static T Random<T>(this Type type, object ctx)
            {
                return default(T);
            }

        }

    It gives me the following errors:

    OpenAccess Error: Index was outside the bounds of the array.


    However, if I replace the line

    return Random<FilterType>().Random<InstanceType>(ctx);

    with

    return default(InstanceType);

    It compiles without any errors.

    Please help

    Thanks.




  2. Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 12 Feb 2010 Link to this post

    Hi Wong Chi Chong,

    It seems to be an issue of the Telerik OpenAccess ORM which was already fixed. Could you please download the latest version of the product?
    Hope that helps.

    Greetings,
    Damyan Bogoev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top