Persist object with delegate property

I am attempting to persist an object with a delegate property\[code\]public delegate void Callback(ScheduledTask ScheduledEvent);public class ScheduledTask { [Key] public int Id { get; set; } /// <summary> /// Time the event will be triggered /// </summary> public DateTime ScheduledTime { get; set;} /// <summary> /// Delegate to call back /// </summary> public Callback callback { get; set; } /// <summary> /// Any event metadata /// </summary> public Dictionary<String, object> Metadata { get; set; } }\[/code\]However i receive this error:\[quote\] (12,10) : error 3004: Problem in mapping fragments starting at lines 6, 12, 21: No mapping specified for properties ScheduledTask.callback in Set ScheduledTasks. An Entity with Key (PK) will not round-trip when: Entity is type [Frontline.Core.Scheduling.ScheduledTask]\[/quote\]when loading the context.How do i persist an object with a delegate using entity framework?
 
Back
Top