simpleidserver / EFCore.Cassandra

Entity Framework Core provider for Cassandra
Apache License 2.0
35 stars 16 forks source link

Fix column names #26

Closed abbatepabloo closed 2 years ago

abbatepabloo commented 2 years ago

If you use case-sensitive columns and create a key or cluster column, the cql code generated won't use the right the column names.

Example: ` protected override void OnModelCreating(ModelBuilder modelBuilder) { // ... modelBuilder.Entity().ToTable("user").HasKey( => .Email); modelBuilder.Entity().Property(p => p.Id).HasColumnName("id"); modelBuilder.Entity().Property(p => p.Email).HasColumnName("email"); // ... modelBuilder.Entity().ForCassandraSetClusterColumns( => .Email); // ... }

` The column 'Email' (instead of 'email') will be used in cql statements. Maybe the changes I made could fix this.

simpleidserver commented 2 years ago

Hello,

I made some changes in the branch "release/3.0.0" in order to fix the column name. Now the column has the correct name : "email".

Kind regards,

Thierry H.