|
When dealing with the <defaultProxy> element, does useDefaultCredentials refer to this property?
|
# ¿ Jan 30, 2020 03:49 |
|
|
# ¿ May 17, 2024 15:18 |
|
That... is not what I was expecting, but thank you for the very helpful answer!
|
# ¿ Jan 30, 2020 07:03 |
|
My work also uses serilog and it's great. You can pair it with something like Seq, or have it write to whatever else
|
# ¿ Apr 11, 2020 16:41 |
|
I am currently having to interact with an Active Directory server via LDAP, using LdapConnection; part of what I need to do involves retrieving user properties (e.g. the `memberOf` attribute). This, and other properties, are returning as an array of ascii values; I would like them to be in a more human readable form (e.g. like what ldp.exe returns). I think that ldp is just doing some intelligent decoding behind the scenes, and I'm wondering if LdapConnection has the same capabilities via some configuration option I'm just missing. Failing that, is there a way of determining ahead of time what attributes are going to be returned as ascii? I realize this might not be the best place for this question, so if there's somewhere else I should ask I'd love to hear about it
|
# ¿ Apr 8, 2022 15:43 |
|
I have an EntityFramework question, specifically EF6. In a project with a model generated using code first, which is also using (and will continue to use) code first migrations, is there a simple way to add a entity class (and DbSet) for what is currently an existing join table in the database without having to rename/migrate/drop the existing table? When adding the class and DbSet, EF considers this a model change and as a result requires a migration. I can add an empty migration with -IgnoreChanges, but this still results in problems with the generated model in the migration history (namely you'll end up with a renamed table there, if not in your database). Looking at the current model builder during `OnModelCreating` only shows the newly added explicit class, so if I can catch this there, I'm uncertain how. As a more concrete example drawing from the EF documentation, let's say I start with the following entities: code:
code:
|
# ¿ Mar 18, 2024 18:19 |
|
biznatchio posted:If I'm understanding your problem right, all you need to do is to add to your DbContext's OnModelCreating: Appreciate the response - just haven't had the chance to try out the above - will update when I have. I also think there might be a few issues with the particular situation I find myself in here that might make it a bit more complicated (regularly creating new databases with the same set of migrations applied). We're also not using EFCore, but that's a problem for another day.
|
# ¿ Mar 21, 2024 01:26 |
|
|
# ¿ May 17, 2024 15:18 |
|
biznatchio posted:Oh my bad I totally missed that you said EF6. That approach won't work in EF6. Yeah this is unfortunately subject to the same issue as just setting `IgnoreChanges`. A table isn't created in the DB schema (good), but the generated .resx contains references to both the desired table (PostTags) and the undesired one (PostTag1)
|
# ¿ Mar 22, 2024 22:13 |