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)

2 results in tag: varchar

Entity Framework 7 migration: how to get a varchar column with a length greater than 1?

I have the following:...[Table("Countries")] public class Country { public int CountryId { get; set; } [MaxLength(255), Required] public string CountryName { get; set; } [Column(TypeName = "varchar")] public string CountryCode { get;...
ef-migrations entity-framework-core maxlength sql-server varchar
asked by Rich76

EnitityFramework is very slow to compare strings because create a nvarchar sqlparameter instead of varchar

I have this sample query:...context.BarcodeTipiDoc.AsQueryable().Where(d => d.Barcode.CompareTo(minBarcode) > 0); ...That query runs very slow because Entity Framework creates SqlParameter for "minBarcode" as ...nvarchar... instead of ...varchar.......I t...
.net-core c# entity-framework-core sql-server varchar
asked by Stefano Balzarotti

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!