locked
Special Character Field Straße RRS feed

  • Question

  • I update a older application using EF with edmx. The SQL Database Schema is more than 15 years old and a lot of Services are connected.

    So i try EF 6 and a Kind of 

    <StringLength(250)>
        <Column("Straße")>
        Public Property Strasse As String

    doesnt work (also the [Straße]) 

    any ideas how to solve the mapping?

    -Hannes

    Tuesday, October 3, 2017 1:41 PM

Answers

  • my working but ugly  solution

    <Column("Stra" + ChrW(&HDF) + "e")>

    Friday, November 17, 2017 6:50 AM

All replies

  • Hi,

    I can create a table with column name "Straße" by using Entity Framework code first, so you can consider code first instead database first.

    Best Regards,

    Bob


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, October 6, 2017 10:01 AM
  • my working but ugly  solution

    <Column("Stra" + ChrW(&HDF) + "e")>

    Friday, November 17, 2017 6:50 AM