0

I have a table with column Name is nvarchar

In SQL statement i using N prefix to save data with Unicode

Insert into TBL_Name (Name) values(N'Hôm nay đẹp trời')

it's work fine. But i don't know how to save unicode string when using Linq?

Please help me.

Thanks so much!

1 Answer 1

1

N prefix mean string literal will be unicode.

When you use LinQ on nvarchar field LinQ already knows that your string will be Unicode. So you don't need to do anything else.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you, i don't why now it's ok, but before that not ok.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.