This question is an extension of another question, but I think it warrants its own thread. See See Silverlight Question
I have a stored procedure (SQL 2005) that returns a dynamic data set (different columns/schema) each time it is called.
I want to consume this in Silverlight 3.0 so I need to somehow wire this up using Entity Framew...
I would like to create a more structured approach to loading the needed entity-tree:
I need a serious amount of data, so I'm doing this using type-safe Includes (just a normal Include but with Lambda's) as shown here.
As I said, I need a lot of data, basically a whole entity tree under 1 parent item.
Now, I could do this doing somethi...
I have been playing with the EF in the last couple of days.
Our applications are based on SQL Anywhere 10 databases, and all our data access are done through stored procedures. Since EF is not supported by SA 10, I am testing EF with SA 11.
For this purpose i have create a small database with 2 tables and a couple of stored procedures (b...
Hello!
I have an ASP.NET app with a three layer architecture:
Presentation layer: ASP.NET
Bussiness Layer: C# library.
Data Access Layer: C# library with
ADO.Net Entity Framework objects.
Some methods on Bussiness layer would return ADO.NET entity objects but, data access layer is not visible at Presentation layer I can't do that.
...
I'm trying to build a search page using LINQ to Entities, but the following code is giving me a runtime error about l.t.e. not recognising 'Boolean StartsWith(). The code compiles just fine. How can I work around this better than shipping the StartsWith filtering out to a stored proc?
return from dp in dents.DirectoryPersonEntrySe...
I want to add new admin into my database. But it doesn't work it. Please look at the button1_Click event handler, I need to add value in this event.
public partial class Form1 : Form
{
protected NetTanitimTestEntities adminNameContext;
public Form1()
{
InitializeComponent();
adminName...
How do I call a stored procedure without error in ADO.NET Entity Framework? If I use the code below, I get an error:
adminNameContext.AddItemCategory(12, "ggf", DateTime.Now);
Error:
The data reader is incompatible with the specified 'NetTanitimTestModel.Categories'. A member of the type, 'ID', does not have a corresponding column i...
I have entity type Order which has a reference to an entity type Customer.
There's a function import that return a list of Order based on a criteria. This list of Orders in displayed in a Datagrid which shows
Order.Date | Order.Customer.Name | Order.Total
For Customer.Name to show up I need to load the CustomerReference in each Order i...
I added this code below:
public partial class Form1 : Form
{
TestAdonetEntity2Entities entityContext;
public Form1()
{
InitializeComponent();
entityContext = new TestAdonetEntity2Entities();
}
private void Form1_Load(object sender, EventArgs e)
{
dataGridView1.DataSource = entityContext.S...
How to use stored procedure in ADO.NET Entity Framework?
My Table : MyCustomer
Columns:
CustomerID PK int
Name nvarchar(50)
SurName nvarchar(50)
My stored procedure
ALTER procedure [dbo].[proc_MyCustomerAdd]
(@Name nvarchar(50),
@SurName nvarchar(50)
)
as
begin
insert into dbo.MyCustomer([Name], Sur...
<asp:FormView DataSourceId="edsAccounts">
<ItemTemplate>
<asp:TextBox Text='<%# Eval("Email") %>' />
<asp:DataGrid ID="dgReports" DataSource='<%# Eval("Reports") %>'>
</ItemTemplate>
</asp:FormView>
<asp:EntityDataSource ID="edsAccounts" runat="server" ConnectionString="name=Entities" DefaultContainerName="Entitie...
Using the Entity Framework, I've modeled a fairly simple database schema with an ever-so-slightly more complex class hierarchy. In two places, I'm using single table inheritance with a single NVARCHAR(20) NOT NULL discriminator column. In one of those two places, it works great, no issues. But in the other place, with an almost identi...
I have an entity with fields that are typed int
and i want to exposed those fields as properties which get and recieve enum type values for working strongly typed.
so i've created a new partial class for the entity and added the two properties.
when i try to create a new instance of the TestEntity and add it to the context ,
and call ...
I am creating a simple application and getting stuck with data storage option. To begin with I would like to use SQL Server as my data storage. I will not be using any special features of SQL Server, its pure tables with CRUD operations.
Now I should be able to switch the underlying data store to either SQL Data Services or Amazon S3 by...
Greetings,
Considering the Northwind sample tables Customers, Orders, and OrderDetails I would like to eager load the related entities corresponding to the tables mentioned above and yet I need ot order the child entities on the database before fetching entities.
Basic case:
var someQueryable = from customer in northwindContext.Custo...
Assuming I have a row in the database with a specific id which I know (in my sample below - a symbol with Id = 5), can I create an EntityObject which can be attached to another entity without the need to load it from the database (same scenario is applicable to "DeleteObject" as well, if you think about it...)?
I've tried the following:...
I have two tables: Ta and Tb. They have exactly the same table structure but different table names.
I try to create one entity class to map the table structures. Some of my common application modules will use this entity class to dynamically query and update either Ta or Tb based on parameters. Can it be done in JPA? How can I write ...
I am using ASP.NET dynamic data for the data adminstration tasks for a Silverlight app that I built. It saved a ton of time not having to write all of the admin screens you typically have to create for end users to manage the data.
One thing I cannot figure out how to sort the items in the drop downs that appear on the screens - either ...
Does the ADO Entity Framework support COM+ transactions ?
...
Hi
How to do the Update table operation in ADO entity framwork
Thanks
Sekar
...