Example #1
0
        private static IQueryable <TInvitation> GetInvitations <TInvitation>(RepresentativesDataContext dc, Guid inviteeId, string inviteeEmailAddress, DateTime minLastSentTime)
            where TInvitation : RepresentativeInvitation, new()
        {
            dc.LoadOptions = InvitationLoadOptions;
            var args = new GetInvitationsByInviteeArgs
            {
                InviteeEmailAddress = inviteeEmailAddress,
                InviteeId           = inviteeId,
                MinLastSentTime     = minLastSentTime
            };

            return(GetInvitationsByInviteeQuery(dc, args, new InvitationFactory <TInvitation>()).Cast <TInvitation>());
        }
Example #2
0
 private static IQueryable <TInvitation> GetInvitations <TInvitation>(RepresentativesDataContext dc, Guid inviterId, Guid inviteeId)
     where TInvitation : RepresentativeInvitation, new()
 {
     dc.LoadOptions = InvitationLoadOptions;
     return(GetInvitationsQuery(dc, inviterId, inviteeId, new InvitationFactory <TInvitation>()).Cast <TInvitation>());
 }
Example #3
0
 private static IQueryable <TInvitation> GetInvitations <TInvitation>(RepresentativesDataContext dc, Guid inviterId, DateTime minLastSentTime)
     where TInvitation : RepresentativeInvitation, new()
 {
     dc.LoadOptions = InvitationLoadOptions;
     return(GetInvitationsByInviterQuery(dc, inviterId, minLastSentTime, new InvitationFactory <TInvitation>()).Cast <TInvitation>());
 }
Example #4
0
 private static TInvitation GetInvitation <TInvitation>(RepresentativesDataContext dc, Guid id)
     where TInvitation : RepresentativeInvitation, new()
 {
     dc.LoadOptions = InvitationLoadOptions;
     return(GetInvitationQuery(dc, id, new InvitationFactory <TInvitation>()) as TInvitation);
 }