entity-framework-4 Questions
2
Solved
What I am trying to do is load in and set the user_version (PRAGMA user_version) from my SQLite database. I am using entity framework, but if I can't do it through that, then I need to be able to d...
Remillard asked 5/4, 2011 at 19:48
8
Solved
I have this sql statement
SELECT userID from users WHERE
(name='name1' AND username='username1') OR
(name='name2' AND username='username2') OR
(name='name3' AND username='username3') OR
.............
Amalberga asked 8/4, 2011 at 12:55
3
Solved
We're getting a very intermittent (like every few weeks someone complains about this) primary key constraint violation in our web app. I've searched the code base, and the only code that even creat...
Gooseneck asked 24/1, 2012 at 20:48
5
Solved
I need to execute a custom query which will be saved somewhere in the database, and I need it to return in a DataTable, or DataSet and bind it to a GridView which will have autogenerate columns set...
Biel asked 5/6, 2012 at 13:35
22
I've narrowed this down to some issue between Code First and Database first EF, but I'm not sure how to fix it. I'll try to be as clear as I can, but I honestly am missing some of the understanding...
Westlund asked 13/11, 2013 at 16:32
18
Solved
This looks like a really common task, but I can't find an easy way to do it.
I want to undo the last applied migration. I would have expected a simple command, like
PM> Update-Database -Targ...
Convenience asked 10/8, 2012 at 15:14
3
Solved
I am using Entity Framework 5 code first. My table has a column called Active and its datatype is of type int. The values that are stored in Active are 0, 1 and null.
I have a class that I need to...
Giesecke asked 7/3, 2013 at 9:39
9
Solved
This isn't a case-sensitive comparison in LINQ to Entities:
Thingies.First(t => t.Name == "ThingamaBob");
How can I achieve case sensitive comparison with LINQ to Entities...
Purpleness asked 1/10, 2010 at 21:7
20
Solved
I've been wrestling with this for a while and can't quite figure out what's happening. I have a Card entity which contains Sides (usually 2) - and both Cards and Sides have a Stage. I'm using EF Co...
Charmine asked 15/6, 2013 at 19:52
6
Solved
I am building my own custom repository, based on entity framework, and I'm creating some extension methods that allow me to save partial view models as entity models so I'm building my own Add and ...
Wile asked 26/10, 2012 at 7:14
4
Solved
I' using EF 4, I have a property DateTimeStart in my entities with datein this format 16/08/2012 08:14:40, I would like query with EF and find all the entities within the date 16/08/2012 only. Usin...
Upstart asked 16/8, 2012 at 8:56
4
Solved
I have a table in my database with a lot of fields. Most of the time I need all those fields. There is one scenario, however, where I only need a few of the fields, and I am loading a ton of rows.
...
Kauai asked 23/2, 2011 at 16:14
8
Solved
I need to expose an Entity Framework Data Context to 3rd party plugins. The purpose is to allow these plugins to fetch data only and not to let them issue inserts, updates or deletes or any other d...
Middling asked 3/5, 2012 at 18:12
5
Solved
I have upgraded from EF 4.3.1 to 6.1.1 and now it seems like the annotation [NotMapped] is useless. Yes, i have change to correct assembly and everything looks fine on compilation.
Everywhere wher...
Buhler asked 3/9, 2014 at 14:18
6
Solved
I have an existing MVC 3 application using entity framework 4. The model was generated using a Database-First Mode. I have also "automatic code generation" that generate the class.
Today, I did a ...
Polarization asked 29/5, 2013 at 0:52
2
Solved
I have two IQueryables:
Ingredient:
IngId
Description
AvailableIngredient:
IngId
I already have an IQueryable for Ingredient:
var ingQuery = from i in context.Ingredients
select i;
How c...
Fishy asked 8/10, 2010 at 10:42
2
Solved
I'm very new to WPF and the EF, and I'm trying to display some data from a table in a datagrid. I've got the entity model pulled from an existing database and simple operations seem to work (gettin...
Thapsus asked 12/11, 2010 at 19:4
5
Using EF, I'm trying to execute a stored procedure that returns a single string value, i.e. the status of an SQL Agent Job.
The stored procedure is declared as
CREATE PROCEDURE [dbo].[up_GetJobSt...
Clarisaclarise asked 27/2, 2014 at 12:5
20
Solved
I have an existing DB with which I would like to build a new app using EF4.0
Some tables do not have primary keys defined so that when I create a new Entity Data Model, I get the following message:...
Sensationalism asked 22/10, 2010 at 12:32
16
Please any one can help me to fix this error?
Schema specified is not valid. Errors:
The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'City_DAL'. Prev...
Ricotta asked 17/2, 2013 at 23:30
21
Solved
I have this query and I get the error in this function:
var accounts = from account in context.Accounts
from guranteer in account.Gurantors
select new AccountsReport
{
CreditRegistryId = accou...
Divergent asked 19/5, 2011 at 17:1
5
Solved
I know some differences of LINQ to Entities and LINQ to Objects which the first implements IQueryable and the second implements IEnumerable and my question scope is within EF 5.
My question is wh...
Motherwell asked 31/7, 2013 at 10:56
3
Solved
I don't want to have to add each mapping class manually to the ModelBuilder() so was trying to use my limited knowledge of reflection to register them. This is what I have, and this is the error I ...
Volvulus asked 8/12, 2010 at 0:12
8
Solved
Using Entity Framework 4 CTP5 Code First and this example
Is it possible to access the discriminator value?
I would like to use it in a projection like
context.BillingDetails.Select(x => new ...
Fortier asked 24/12, 2010 at 11:6
9
Solved
I need to compare just the date only in a Linq query that involves a datetime field. However, the syntax below results in the following error message
The specified type member 'Date' is not suppo...
Henna asked 8/2, 2013 at 18:11
1 Next >
© 2022 - 2024 — McMap. All rights reserved.