Пример #1
0
 void ISearchAlertsRepository.CreateDesiredJobAdSearchId(Guid ownerId, Guid jobAdSearchId)
 {
     using (var dc = CreateContext())
     {
         var entity = new CandidateEntity {
             id = ownerId, desiredJobSavedSearchId = null
         };
         dc.CandidateEntities.Attach(entity);
         entity.desiredJobSavedSearchId = jobAdSearchId;
         dc.SubmitChanges();
     }
 }
Пример #2
0
        void ISearchAlertsRepository.DeleteDesiredJobAdSearchId(Guid ownerId)
        {
            using (var dc = CreateContext())
            {
                // Set it to something so that it gets updated.

                var entity = new CandidateEntity {
                    id = ownerId, desiredJobSavedSearchId = Guid.NewGuid()
                };
                dc.CandidateEntities.Attach(entity);
                entity.desiredJobSavedSearchId = null;
                dc.SubmitChanges();
            }
        }
Пример #3
0
 partial void DeleteCandidateEntity(CandidateEntity instance);
Пример #4
0
 partial void UpdateCandidateEntity(CandidateEntity instance);
Пример #5
0
 partial void InsertCandidateEntity(CandidateEntity instance);