Absolem Jackdaw
Absolem Jackdaw
CC#
Created by Absolem Jackdaw on 8/2/2024 in #help
MAUI - Click event not found refered in AppShell.xaml.cs
solved 👍
2 replies
CC#
Created by Absolem Jackdaw on 11/12/2023 in #help
Primary key from object instead of a native
thanks for rubber ducking for me dont, i appreciate it
17 replies
CC#
Created by Absolem Jackdaw on 11/12/2023 in #help
Primary key from object instead of a native
seems like i forgot all about the onmodelcreating ... looked for 2 horus yeterday night before giving up CatThumbsUp
17 replies
CC#
Created by Absolem Jackdaw on 11/12/2023 in #help
Primary key from object instead of a native
here's the next error haha that worked
17 replies
CC#
Created by Absolem Jackdaw on 11/12/2023 in #help
Primary key from object instead of a native
let me put my onmodelcreating method in there ...
17 replies
CC#
Created by Absolem Jackdaw on 11/12/2023 in #help
Primary key from object instead of a native
internal class HumanResourcesContext : DbContext
{
public DbSet<Employee> Employees { get; set; }

public HumanResourcesContext(DbContextOptions options) : base(options)
{
}
}
internal class HumanResourcesContext : DbContext
{
public DbSet<Employee> Employees { get; set; }

public HumanResourcesContext(DbContextOptions options) : base(options)
{
}
}
17 replies
CC#
Created by Absolem Jackdaw on 11/12/2023 in #help
Primary key from object instead of a native
my dbcontext is as good as empty
17 replies
CC#
Created by Absolem Jackdaw on 11/12/2023 in #help
Primary key from object instead of a native
this is in program.cs and i was told, or rather I currently believe(d) that the entityconfiguration was called here
17 replies
CC#
Created by Absolem Jackdaw on 11/12/2023 in #help
Primary key from object instead of a native
ConfigurationManager configuration = builder.Configuration;
builder.Services.AddDbContext<HumanResourcesContext>(options =>
{
string connectionString = configuration["ConnectionString"];
options.UseSqlServer(connectionString, sqlOptions => { sqlOptions.EnableRetryOnFailure(maxRetryCount: 15, maxRetryDelay: TimeSpan.FromSeconds(30), errorNumbersToAdd: null); });
#if DEBUG
options.UseLoggerFactory(LoggerFactory.Create(loggingBuilder => loggingBuilder.AddDebug()));
options.EnableSensitiveDataLogging();
#endif
});
ConfigurationManager configuration = builder.Configuration;
builder.Services.AddDbContext<HumanResourcesContext>(options =>
{
string connectionString = configuration["ConnectionString"];
options.UseSqlServer(connectionString, sqlOptions => { sqlOptions.EnableRetryOnFailure(maxRetryCount: 15, maxRetryDelay: TimeSpan.FromSeconds(30), errorNumbersToAdd: null); });
#if DEBUG
options.UseLoggerFactory(LoggerFactory.Create(loggingBuilder => loggingBuilder.AddDebug()));
options.EnableSensitiveDataLogging();
#endif
});
17 replies
CC#
Created by Absolem Jackdaw on 11/12/2023 in #help
Primary key from object instead of a native
let me look up where i call it
17 replies
CC#
Created by Absolem Jackdaw on 11/12/2023 in #help
Primary key from object instead of a native
it shouldnt be nullable btw i believe a key shouldnt be nullable at all ?
17 replies
CC#
Created by Absolem Jackdaw on 11/12/2023 in #help
Primary key from object instead of a native
and then i added column id in the hopes that it would help/change. it used to be named number too, then i renamed it 'Id' and i added requiered hoping that it would be detected
17 replies
CC#
Created by Absolem Jackdaw on 11/12/2023 in #help
Primary key from object instead of a native
because the configure didnt do anything, I added the key annotation on top of it
17 replies