public static TraffickingToScheduled CreateTraffickingToScheduled(int ScheduledID, global::System.DateTime startDate, global::System.DateTime endDate, int originatingNetworkID, int showID, int seasonID, int episodeID, string ffDisable)
{
TraffickingToScheduled traffickingToScheduled = new TraffickingToScheduled();
traffickingToScheduled.ScheduledID = ScheduledID;
traffickingToScheduled.StartDate = startDate;
traffickingToScheduled.EndDate = endDate;
traffickingToScheduled.OriginatingNetworkID = originatingNetworkID;
traffickingToScheduled.ShowID = showID;
traffickingToScheduled.SeasonID = seasonID;
traffickingToScheduled.EpisodeID = episodeID;
traffickingToScheduled.FFDisable = ffDisable;
return traffickingToScheduled;
}
Context.AddToTraffickingToScheduleds(traffickingToScheduled);
Save();
我有一个具有 1 对 1 关系的Scheduled
表到表的外部引用。TraffickingToScheduled
在保存它时会抛出错误作为TraffickingToScheduled
参与TraffickingToScheduled_FK_Scheduled
关系。找到 0 个相关的“已安排” Scheduled
。预计为 1 个。