zzz projects Entity Framework Core EF Core
Home Articles Knowledge Base Online Examples
  • Home
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework Core - Knowledge Base (KB)

3 results in tag: casting

Is there a way to cast in the `Where` part of an Entity Framework query?

To be clear, I am not referring to performing a ....Cast<T>... on the results of an EF call....I'm trying to implement a partial search on a number field....When creating a SQL script, it is easy to convert a column to another data type:...SELECT Id FROM ...
c# casting entity-framework entity-framework-6 linq
asked by krillgar

Why Entity Framework throws invalid cast

No matter what method I use to query for data on I can't get past this one method. It always throws an error:...Specified cast is not valid....Not sure why this one is going nuts on the casting. The column is defined as ...INT(10)... in MySQL, the model i...
.net c# casting entity-framework entity-framework-core
asked by CoderLee

How to cast string to class property

I have a model for my database (using efcore to translate between model and database) that contains a string that can be three values....In order to better control the string values going into the db, I created an enum of sorts (which you can't do in C# s...
c# casting entity-framework-core
asked by thalacker

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!