I have a SQL Server data source which cannot be modify (I'm not the dbo). I use Entity Framework 6 model-first to do my querying. Everything is fine except that I must select costumer names and there's only two character discrepancy.
Datasource Wanted
=============================
¤ Ñ
¥ ñ
MU¤OZ MUÑOZ
Zu¥iga Zuñiga
So.. there's a transparent way to do so? Obviously... you can make a method to replace and just call when you query the costumers table. But what I want is make a solution that works with all the queries that already create and will write too.
I read about implementing
System.Data.Entity.Infrastructure.Interception.IDbCommandInterceptor
but not sure if its the right way.
An exaple of a query and its result;
var aCostumer = db.costumers.Where(n=>n.idCostumer==someId).Select(n=>new{n.idCostumer,n.firstName,n.lastName}).FirstOrDefault();
Result
idCostumer firstName lastName
===================================
1 DAVID MU¤OZ
But I want that query result were:
idCostumer firstName lastName
===================================
1 DAVID MUÑOZ
Can someone point me the right direction? Thanks in advance