Questions tagged as 'entity-framework-6'

2
answers

Synchronize items in comboboxes at run time

I've tried for some time to figure out how to synchronize one combobox with another. I am wanting to sync comboboxes at runtime. When the user selects a category in the combobox, depending on their choice, the combobox subcategory will display t...
asked by 17.11.2015 / 23:22
1
answer

MultiTenancy application and structure

SaaS applications are on the rise, reducing costs, maintenance, etc. We know we have the concept: MultiTenancy ( link ) They are: By Column: Put an idClient column on all tables By Schema: Separate clients by schema, client1.contacts...
asked by 17.07.2014 / 21:28
2
answers

Getting Foreign Key value - Object reference not set to an instance of an object

Using Code First - MVC 4 - EF6 I have the following Model: [Table("usuario")] public class Usuario { [Key] [Column("UsuarioId")] public int UsuarioId { get; set; } public string Nome { get; set; } } [Table("Orcamento")] publi...
asked by 13.07.2014 / 04:07
1
answer

How to create a Lambda expression with Group by and Order By

I'm having trouble creating a Lambda sentence with Group by and Order By Together. How do I group by the Scope and IDScope column, and sort by IDEscope. Judgment follows. public static List<Escopos> EscoposCalCliente(int IDCalCLie...
asked by 18.12.2014 / 19:39
1
answer

System.ArgumentException when using MySQL with Entity framework

I installed the MySQL connector in the environment, I installed the MySQL references through the Nuget package. When I start the system and try to insert into the database, the following error appears:    The ADO.NET provider with invariant n...
asked by 02.09.2014 / 23:27
1
answer

Problem in the size of the FK name

I have a WebApi to work with a database of Firebird 2.5 , I used at the time the EF, but today it is presenting me with the following error    "The name 'FK_ARRUMACAO_CHECKLIST_ARRUMACAO_ARRUMACAO_ID' is longer   than Firebird's...
asked by 21.09.2018 / 20:33
1
answer

Relationship 1x1 (or not)

I have 2 entities: Product Order and Product ... Using the fluent API as I say to my entity Requested Item that it has a Product? Note: The product entity can not have dependencies, although 1 product can be in several items. I do not w...
asked by 07.08.2018 / 17:41
2
answers

What is READ_COMMITTED_SNAPSHOT?

What is READ_COMMITTED_SNAPSHOT transaction support for EF6 About Anyway? What is your use within the Entity Framework?     
asked by 04.11.2016 / 13:16
1
answer

Relationship in table with Include does not work

I can not make my parent table include the dependent: var medicos = TabelaMedico.Include(m => m.Especialidade).ToList(); It displays the following error message:    CS1660: Can not convert lambda expression to type 'string' because it...
asked by 27.07.2017 / 18:54
1
answer

How to do foreach on each select using EF6?

Follow the code: var list = new List<String>(); list.Add("Casa"); list.Add("Apartamento"); var connection = ctx.Table.Where(x => x.Tipo== list).ToList(); My database: +=============================================+ | Tipo...
asked by 17.03.2017 / 02:40