Junior — Middle
Do you have experience in database development and design?
sobes.tech AI
Answer from AI
Yes, experience in database development and design includes creating data schemas, normalizing tables, writing SQL queries, and optimizing performance. In C#, Entity Framework is often used for working with databases, allowing for designing data models and managing them through code.
Example of a simple model class and context in Entity Framework:
public class Product
{
public int Id { get; set; }
public string Name { get; set; }
public decimal Price { get; set; }
}
public class AppDbContext : DbContext
{
public DbSet<Product> Products { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlServer("your_connection_string");
}
}
This approach allows designing the database at the code level and managing migrations.