partial void DeleteCloudUser(CloudUser instance);
partial void InsertCloudUser(CloudUser instance);
partial void UpdateCloudUser(CloudUser instance);
private List<CloudFlashCardSet> ConverToCloudSet(List<ServiceFlashCardSet> serviceSets, CloudUser user) { List<CloudFlashCardSet> sets = new List<CloudFlashCardSet>(); foreach (var serviceFlashCardSet in serviceSets) { CloudFlashCardSet set = new CloudFlashCardSet() { SetName = serviceFlashCardSet.SetName, ID = serviceFlashCardSet.ID, //CloudUser = user, UserID = user.Id }; foreach (var serviceCard in serviceFlashCardSet.FlashCards) { CloudFlashCard card = new CloudFlashCard() { Traditional = serviceCard.Traditional, Simplified = serviceCard.Simplified, Pinyin = serviceCard.Pinyin, CloudFlashCardSet = set, Definition = serviceCard.Definition, ID = serviceCard.ID, OwnerID = user.Id }; set.CloudFlashCards.Add(card); } sets.Add(set); } return sets; }