Beispiel #1
0
        public async Task FindRelatedAsync(IDbConnection connection, CommandProvider <int> commandProvider, IUser user = null, IEnumerable <Claim> claims = null)
        {
            Application = await commandProvider.FindAsync <Application>(connection, ApplicationId);

            Status = await commandProvider.FindAsync <InvoiceStatus>(connection, StatusId);

            Organization = await commandProvider.FindAsync <Organization>(connection, OrganizationId);
        }
Beispiel #2
0
        public async Task FindRelatedAsync(IDbConnection connection, CommandProvider <int> commandProvider)
        {
            Application = await commandProvider.FindAsync <Application>(connection, ApplicationId);

            Status = await commandProvider.FindAsync <InvoiceStatus>(connection, StatusId);

            Organization = await commandProvider.FindAsync <Organization>(connection, OrganizationId);
        }
Beispiel #3
0
        public async Task FindRelatedAsync(IDbConnection connection, CommandProvider <int> commandProvider, IUser user = null, IEnumerable <Claim> claims = null)
        {
            Organization = await commandProvider.FindAsync <Organization>(connection, OrganizationId);

            if (TeamId.HasValue)
            {
                Team = await commandProvider.FindAsync <Team>(connection, TeamId.Value);
            }
        }
Beispiel #4
0
        public async Task FindRelatedAsync(IDbConnection connection, CommandProvider <int> commandProvider, IUser user = null, IEnumerable <Claim> claims = null)
        {
            Option = await commandProvider.FindAsync <Option>(connection, OptionId);

            OptionType = await commandProvider.FindAsync <OptionType>(connection, Option.TypeId);

            StorageColumn = OptionType.StorageColumn;
            OptionName    = Option.Name;
            TypeId        = Option.TypeId;
        }
Beispiel #5
0
        public async Task FindRelatedAsync(IDbConnection connection, CommandProvider <int> commandProvider)
        {
            if (CurrentAppId.HasValue)
            {
                CurrentApp = await commandProvider.FindAsync <Application>(connection, CurrentAppId.Value);
            }

            UserProfile = await commandProvider.FindAsync <UserProfile>(connection, UserId);

            Organization = await commandProvider.FindAsync <Organization>(connection, OrganizationId);
        }
Beispiel #6
0
        public async Task FindRelatedAsync(IDbConnection connection, CommandProvider <int> commandProvider, IUser user = null, IEnumerable <Claim> claims = null)
        {
            if (CurrentAppId.HasValue)
            {
                CurrentApp = await commandProvider.FindAsync <Application>(connection, CurrentAppId.Value);
            }

            if (CurrentTeamId.HasValue)
            {
                CurrentTeam = await commandProvider.FindAsync <Team>(connection, CurrentTeamId.Value);
            }

            UserProfile = await commandProvider.FindAsync <UserProfile>(connection, UserId);

            Email        = UserProfile.Email;
            Organization = await commandProvider.FindAsync <Organization>(connection, OrganizationId);
        }
Beispiel #7
0
 public async Task FindRelatedAsync(IDbConnection connection, CommandProvider <int> commandProvider)
 {
     Organization = await commandProvider.FindAsync <Organization>(connection, OrganizationId);
 }
Beispiel #8
0
 public async Task FindRelatedAsync(IDbConnection connection, CommandProvider <int> commandProvider)
 {
     EventLog = await commandProvider.FindAsync <EventLog>(connection, EventLogId);
 }
Beispiel #9
0
 public async Task FindRelatedAsync(IDbConnection connection, CommandProvider <int> commandProvider, IUser user = null, IEnumerable <Claim> claims = null)
 {
     EventLog = await commandProvider.FindAsync <EventLog>(connection, EventLogId);
 }
Beispiel #10
0
 public async Task FindRelatedAsync(IDbConnection connection, CommandProvider <int> commandProvider, IUser user = null, IEnumerable <Claim> claims = null)
 {
     Responsibility = await commandProvider.FindAsync <Responsibility>(connection, ResponsibilityId);
 }
Beispiel #11
0
        public async Task FindRelatedAsync(IDbConnection connection, CommandProvider <int> commandProvider)
        {
            MilestoneWorkDay = await commandProvider.FindAsync <WorkDay>(connection, MilestoneWorkDayValue);

            OwnerUser = await commandProvider.FindAsync <UserProfile>(connection, OwnerUserId);
        }
Beispiel #12
0
 public async Task FindRelatedAsync(IDbConnection connection, CommandProvider <int> commandProvider, IUser user = null, IEnumerable <Claim> claims = null)
 {
     Milestone = await commandProvider.FindAsync <Milestone>(connection, MilestoneId);
 }
Beispiel #13
0
 public async Task FindRelatedAsync(IDbConnection connection, CommandProvider <int> commandProvider)
 {
     Responsibility = await commandProvider.FindAsync <Responsibility>(connection, ResponsibilityId);
 }
Beispiel #14
0
 public async Task FindRelatedAsync(IDbConnection connection, CommandProvider <int> commandProvider, IUser user = null, IEnumerable <Claim> claims = null)
 {
     Application = await commandProvider.FindAsync <Application>(connection, ApplicationId);
 }
Beispiel #15
0
        public async Task FindRelatedAsync(IDbConnection connection, CommandProvider <int> commandProvider, IUser user = null, IEnumerable <Claim> claims = null)
        {
            MilestoneWorkDay = await commandProvider.FindAsync <WorkDay>(connection, MilestoneWorkDayValue);

            OwnerUser = await commandProvider.FindAsync <UserProfile>(connection, OwnerUserId);
        }