This is a migrated thread and some comments may be shown as answers.
Problem in compiling ORM enabled projects
1 Answer 16 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Wong Chi Chong
Top achievements
Rank 1
Wong Chi Chong asked on 10 Feb 2010, 01:58 AM
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.




1 Answer, 1 is accepted

Sort by
0
Damyan Bogoev
Telerik team
answered on 12 Feb 2010, 06:04 PM
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.
Tags
General Discussions
Asked by
Wong Chi Chong
Top achievements
Rank 1
Answers by
Damyan Bogoev
Telerik team
Share this question
or