This is a migrated thread and some comments may be shown as answers.

Appointment Entity inheritance on client

1 Answer 47 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
NickName
Top achievements
Rank 1
NickName asked on 15 Sep 2011, 10:21 AM
I have implemented my class Meeting which is partial class and inherits from
Entity class named Appointment:

public abstract partial class Appointment : Entity{....}


Partial Meeting class is also entity:
public sealed partial class Meeting : Appointment { ... }


Second Meeting class implementation I made similar to implementation of Telerik Appointment class which inherits from AppointmentBase.

The issue raise when I try to create my Meeting class instance:

private void btnCreateMeeting_Click(object sender, System.Windows.RoutedEventArgs e)
{
      var meeting = new Meeting
      {
         Start = DateTime.Now,
         End = DateTime.Now.AddHours(2)
      };
      RadScheduleViewCommands.CreateAppointment.Execute(meeting, scheduleView);
}


Appointment dialog box appears. I enter values and click OK and get error:

Message: System.ArgumentOutOfRangeException: Index was out of range.
Must be non-negative and less than size of the collection
Parameter name: index

I don`t even know what the issue is? In what property? Can you help me or direct me in some right way.
Thank you!

1 Answer, 1 is accepted

Sort by
0
NickName
Top achievements
Rank 1
answered on 16 Sep 2011, 01:23 PM
Can anybody help me? Thanks...
Tags
ScheduleView
Asked by
NickName
Top achievements
Rank 1
Answers by
NickName
Top achievements
Rank 1
Share this question
or