Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Unicode conversion default behaviour. Not changeable when using string interpolated queries. #288

Open
@BernhardNinaus

Description

It is not possible to change the default string conversion (nvarchar2) in an interpolated string.

e.g.

 db.Model.FromSqlInterpolated("select ... from ... where key in (... field = {val} ...)")

What I already considered:

Note that field is not accessible in Model.

It would be really nice to globaly change the behaviour of using varchar2 instead of nvarchar2.
Something like:

builder.Services.AddDbContext<DataContext>(
 options => options.UseOracle(builder.Configuration.GetConnectionString("DB"),
 oraOptionsBuilder => oraOptionsBuilder.UserVarchar2()));

This would also allow to be a little more lazy on the column type definition with HasColumnType.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /