LLBLGen Pro exception: The multi-part identifier "MyDatabase.dbo.User.Name" could not be bound

If you get an exception like: System.Web.HttpUnhandledException (0x80004005): Exception of type ‘System.Web.HttpUnhandledException’ was thrown. —> SD.LLBLGen.Pro.ORMSupportClasses.ORMQueryExecutionException: An exception was caught during the execution of a retrieval query: The multi-part identifier "MyDatabase.dbo.User.Name" could not be bound.. make sure you use corresponding EntityFactory and Fields:   EntityCollection items = new EntityCollection(new UserEntityFactory()); …

Showing, Styling and DataBind items in an ASP .NET 4.0 CheckBoxList using CSS and EF4.0

I wanted to show records in the ProductCategory table of the SQL Server AdventureWorks database in a ASP .NET 4.0 by using a CheckBoxList, without writing any code. Result   CheckedListBox.aspx <%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="CheckedListBox.aspx.cs" Inherits="Rvl.Demo.AspNet4.EF.WebApplication.Pages.CheckedListBox" %> <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"> <link href="../Styles/CheckedListBox.css" rel="stylesheet" type="text/css" /> </asp:Content> <asp:Content …

How to get the primary key value in DeleteCommand event of a RadGrid

First of all you should set the MasterTableView.DataKeyNames property of the RadGrid to the primary key columns: <MasterTableView DataKeyNames="Id"> <telerik:RadGrid ID="customerOverviewRadGrid" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="customersDS" EnableLinqExpressions="false" runat="server" ondeletecommand="customerOverviewRadGrid_DeleteCommand" > <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle> <MasterTableView DataKeyNames="Id"> <Columns> . . . </Columns> </MasterTableView> </telerik:RadGrid> Then in you’re DeleteCommand you can get you’re primary …