julian
julian
CC#
Created by euporter🎃 on 11/15/2024 in #help
Problem with Pop3Client
I think you can right click on your thread as set is as closed
18 replies
CC#
Created by euporter🎃 on 11/15/2024 in #help
Problem with Pop3Client
No worries! Also, you didn't waste my time! 😄 We are here to help each other 🙂
18 replies
CC#
Created by euporter🎃 on 11/15/2024 in #help
Problem with Pop3Client
So, try enabling that first, and see if that works.
18 replies
CC#
Created by euporter🎃 on 11/15/2024 in #help
Problem with Pop3Client
"Status: POP is deactivated"
18 replies
CC#
Created by euporter🎃 on 11/15/2024 in #help
Problem with Pop3Client
But POP isn't enabled by default
18 replies
CC#
Created by euporter🎃 on 11/15/2024 in #help
Problem with Pop3Client
No description
18 replies
CC#
Created by euporter🎃 on 11/15/2024 in #help
Problem with Pop3Client
Mine is in Norwegian
18 replies
CC#
Created by euporter🎃 on 11/15/2024 in #help
Problem with Pop3Client
@euporter🎃 Did you figure it out?
18 replies
CC#
Created by euporter🎃 on 11/15/2024 in #help
Problem with Pop3Client
And is there a reason why you're using POP instead of SMTP?
18 replies
CC#
Created by euporter🎃 on 11/15/2024 in #help
Problem with Pop3Client
18 replies
CC#
Created by julian on 1/26/2024 in #help
EF Error when adding migration
D:
16 replies
CC#
Created by julian on 1/26/2024 in #help
EF Error when adding migration
I tried this:
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlServer(
@"Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=DbName;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False");
}
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlServer(
@"Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=DbName;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False");
}
And this worked. But I'll try it out. Not my project, but I've used EF like 2 times.. I'm a Dapper user
16 replies
CC#
Created by julian on 1/26/2024 in #help
EF Error when adding migration
Nope
16 replies
CC#
Created by julian on 1/26/2024 in #help
EF Error when adding migration
public class ApplicationDbContext : IdentityDbContext<ApplicationUser, IdentityRole<Guid>, Guid>
{
public ApplicationDbContext()
{

}

public ApplicationDbContext(DbContextOptions options) : base(options) { }

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<IdentityUserLogin<Guid>>()
.HasNoKey();
modelBuilder.Entity<IdentityUserRole<Guid>>()
.HasNoKey();
modelBuilder.Entity<IdentityUserToken<Guid>>()
.HasNoKey();
modelBuilder.Entity<StakedBottle>(entity =>
{
entity.Property(e => e.Keywords)
.HasConversion(
v => string.Join(',', v),
v => v.Split(',', StringSplitOptions.RemoveEmptyEntries).Select(e => e.Trim()).ToArray()
);
});
modelBuilder.Entity<StakedBottle>()
.Property(e => e.Why)
.HasConversion(
v => JsonConvert.SerializeObject(v),
v => JsonConvert.DeserializeObject<List<BottleWhyDetails>>(v) ?? new List<BottleWhyDetails>()
);
modelBuilder.Entity<StripePayment>();
}

public virtual DbSet<UserStakedBottle> UserBottles { get; set; }
public virtual DbSet<StakedBottle> StakeBottles { get; set; }
public virtual DbSet<Distillery> Distilleries { get; set; }
public virtual DbSet<StripePayment> StripePayments { get; set; }
public virtual DbSet<StripePromoCode> StripePromoCodes { get; set; }
}
public class ApplicationDbContext : IdentityDbContext<ApplicationUser, IdentityRole<Guid>, Guid>
{
public ApplicationDbContext()
{

}

public ApplicationDbContext(DbContextOptions options) : base(options) { }

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<IdentityUserLogin<Guid>>()
.HasNoKey();
modelBuilder.Entity<IdentityUserRole<Guid>>()
.HasNoKey();
modelBuilder.Entity<IdentityUserToken<Guid>>()
.HasNoKey();
modelBuilder.Entity<StakedBottle>(entity =>
{
entity.Property(e => e.Keywords)
.HasConversion(
v => string.Join(',', v),
v => v.Split(',', StringSplitOptions.RemoveEmptyEntries).Select(e => e.Trim()).ToArray()
);
});
modelBuilder.Entity<StakedBottle>()
.Property(e => e.Why)
.HasConversion(
v => JsonConvert.SerializeObject(v),
v => JsonConvert.DeserializeObject<List<BottleWhyDetails>>(v) ?? new List<BottleWhyDetails>()
);
modelBuilder.Entity<StripePayment>();
}

public virtual DbSet<UserStakedBottle> UserBottles { get; set; }
public virtual DbSet<StakedBottle> StakeBottles { get; set; }
public virtual DbSet<Distillery> Distilleries { get; set; }
public virtual DbSet<StripePayment> StripePayments { get; set; }
public virtual DbSet<StripePromoCode> StripePromoCodes { get; set; }
}
16 replies
CC#
Created by julian on 1/26/2024 in #help
EF Error when adding migration
@SwaggerLife Sure!
16 replies
CC#
Created by julian on 10/13/2023 in #help
Not able to run .NET apps
Solved it by deleting the .NET version I installed.. Weird
3 replies
CC#
Created by julian on 10/13/2023 in #help
❔ dotnet publish docker fails
How can I solve this?
11 replies
CC#
Created by julian on 10/13/2023 in #help
❔ dotnet publish docker fails
No description
11 replies
CC#
Created by julian on 10/13/2023 in #help
❔ dotnet publish docker fails
But, I got to run my Domain project with Docker But I'm getting this error:
11 replies
CC#
Created by julian on 10/13/2023 in #help
❔ dotnet publish docker fails
It's a BitBucket project, so not public hehe
11 replies