コード例 #1
0
 public AddNewPublicationModel(PublicationDbContext phd, ProfileDbContext prdb)
 {
     phdStudentsDbContext = phd;
     profileDbContext     = prdb;
     CurrentProfile       = new Profile();
 }
コード例 #2
0
 public RecommendationService(ProfileDbContext db)
 {
     _db = db;
 }
コード例 #3
0
 public SummaryResumeService(ProfileDbContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #4
0
 public AllCoursesModel(ProfileDbContext pdc, CourseDbContext cdc)
 {
     profileDbContext = pdc;
     courseDbContext  = cdc;
     CurrentProfile   = new Profile();
 }
コード例 #5
0
 public CourseResumeService(ProfileDbContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #6
0
 public SkillService(ProfileDbContext db)
 {
     _db = db;
 }
コード例 #7
0
 private static void AddIdProviders(ProfileDbContext context)
 {
     if (!context.Endpoints.Any())
     {
         context.Endpoints.AddRange(new[]
         {
             new Endpoint
             {
                 CreateDateTime = DateTime.UtcNow,
                 Description    = "simple identity server",
                 Name           = "simpleidserver",
                 Url            = "http://localhost:60000/.well-known/openid-configuration",
                 Type           = (int)EndpointTypes.OPENID,
                 ManagerUrl     = "http://localhost:60003/.well-known/openidmanager-configuration",
                 Order          = 1
             },
             new Endpoint
             {
                 CreateDateTime = DateTime.UtcNow,
                 Description    = "authorization server",
                 Name           = "authserver",
                 Url            = "http://localhost:60004/.well-known/uma2-configuration",
                 Type           = (int)EndpointTypes.AUTH,
                 ManagerUrl     = "http://localhost:60007/.well-known/openidmanager-configuration",
                 Order          = 1
             },
             new Endpoint
             {
                 CreateDateTime = DateTime.UtcNow,
                 Description    = "scim server",
                 Name           = "scimserver",
                 Url            = "http://localhost:60001",
                 Type           = (int)EndpointTypes.SCIM,
                 ManagerUrl     = "http://localhost:60004/.well-known/uma2-configuration",
                 Order          = 1
             },
             new Endpoint
             {
                 CreateDateTime = DateTime.UtcNow,
                 Description    = "fake simple identity server",
                 Name           = "fakesimpleidserver",
                 Url            = "http://fake:60000/.well-known/openid-configuration",
                 Type           = (int)EndpointTypes.OPENID,
                 ManagerUrl     = "http://fake:60003/.well-known/openidmanager-configuration",
                 Order          = 2
             },
             new Endpoint
             {
                 CreateDateTime = DateTime.UtcNow,
                 Description    = "fake authorization server",
                 Name           = "fakeauthserver",
                 Url            = "http://fake:60004/.well-known/uma2-configuration",
                 ManagerUrl     = "http://fake:60004/.well-known/uma2-configuration",
                 Type           = (int)EndpointTypes.AUTH,
                 Order          = 1
             },
             new Endpoint
             {
                 CreateDateTime = DateTime.UtcNow,
                 Description    = "fakescim server",
                 Name           = "fakescimserver",
                 Url            = "http://fake:60001/ServiceProviderConfig",
                 Type           = (int)EndpointTypes.SCIM,
                 Order          = 1
             }
         });
     }
 }
コード例 #8
0
 public ResumeService(ProfileDbContext db)
 {
     _db = db;
 }
コード例 #9
0
 public StreamService(ProfileDbContext db)
 {
     _db = db;
 }
コード例 #10
0
 public ArticleTypeService(ProfileDbContext context)
 {
     _Context = context;
 }
コード例 #11
0
 public UserInfoResumeService(ProfileDbContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #12
0
 public ErrorModel(ProfileDbContext pdb)
 {
     profileDbContext = pdb;
     CurrentProfile = new Profile();
 }
コード例 #13
0
 public SkillResumeService(ProfileDbContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #14
0
 protected GenericRepository(ProfileDbContext dataContext)
 {
     _dataContext = dataContext;
     _table       = dataContext.Set <TEntity>();
 }
コード例 #15
0
 public EducationService(ProfileDbContext db)
 {
     _db = db;
 }
コード例 #16
0
 public ProfileController(ProfileDbContext db)
 {
     _db = db;
 }
コード例 #17
0
 public RecommendationResumeService(ProfileDbContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #18
0
 public SummaryService(ProfileDbContext db)
 {
     _db = db;
 }
コード例 #19
0
 public MyCoursesController(ProfileDbContext context)
 {
     _context = context;
 }
コード例 #20
0
 public PositionRepository(ProfileDbContext context) : base(context)
 {
     UnitOfWork = context;
 }
コード例 #21
0
 public ProfileManageController(ProfileDbContext context, UserManager <ApplicationUser> userManager)
 {
     _profileDbContext = context;
     _userManager      = userManager;
 }
コード例 #22
0
 public HomeController(ProfileDbContext dbContext)
 {
     _db = dbContext;
 }
コード例 #23
0
 public COsmosDbService(ProfileDbContext ctx)
 {
     this.ctx = ctx;
     // this will makes sure that the database is created
     ctx.Database.EnsureCreated();
 }
コード例 #24
0
        public static void Initialize(ProfileDbContext context)
        {
            IList <Stream> streams = new List <Stream>
            {
                new Stream
                {
                    StreamFullName  = "Android Developer",
                    StreamShortName = "AD"
                },
                new Stream
                {
                    StreamFullName  = "Java Automated Testing",
                    StreamShortName = "AT"
                },
                new Stream
                {
                    StreamFullName  = "Business Analyst",
                    StreamShortName = "BA"
                },
                new Stream
                {
                    StreamFullName  = "C++ Developer",
                    StreamShortName = "CD"
                },
                new Stream
                {
                    StreamFullName  = "Front-end",
                    StreamShortName = "FD"
                },
                new Stream
                {
                    StreamFullName  = "Java Developer",
                    StreamShortName = "JD"
                },
                new Stream
                {
                    StreamFullName  = "ASP.NET Developer",
                    StreamShortName = "ND"
                },
                new Stream
                {
                    StreamFullName  = "iOS Developer",
                    StreamShortName = "ID"
                },
                new Stream
                {
                    StreamFullName  = "PHP Developer",
                    StreamShortName = "PD"
                },
                new Stream
                {
                    StreamFullName  = "Python Developer",
                    StreamShortName = "PT"
                },
                new Stream
                {
                    StreamFullName  = "Python Automated Testing",
                    StreamShortName = "PT2"
                },
                new Stream
                {
                    StreamFullName  = "Software Testing",
                    StreamShortName = "ST"
                },
                new Stream
                {
                    StreamFullName  = "UI/UX Designer",
                    StreamShortName = "UI/UX"
                }
            };

            foreach (Stream str in streams)
            {
                var existingStream = context.Streams.FirstOrDefault(s => s.StreamShortName == str.StreamShortName);
                if (existingStream != null)
                {
                    existingStream.StreamFullName  = str.StreamFullName;
                    existingStream.StreamShortName = str.StreamShortName;
                    context.Streams.Update(existingStream);
                }
                else
                {
                    context.Streams.Add(str);
                }
            }

            context.SaveChanges();
        }
 public UserDetailsRepository(ProfileDbContext dataContext) : base(dataContext)
 {
 }
コード例 #26
0
 public ForeignLanguageResumeService(ProfileDbContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #27
0
 public ProfileRepository(ProfileDbContext context)
 {
     _context  = context;
     _entities = context.Set <T>();
 }
 public CountryRepository(ProfileDbContext dataContext) : base(dataContext)
 {
 }
 public CreateRequestServiceCommandHandler(ProfileDbContext profileDbContext)
 {
     _profileDbContext = profileDbContext;
 }
コード例 #30
0
 public DateService(ProfileDbContext db)
 {
     _db = db;
 }