Hello. I am trying to fill a typed view from the database. I've got SQL Server 2005. The typed view in in llbl. I can make a typed view object but when my code tries to fill the object, I get an error saying that the primary key of the table that is part of the view could not be bound. I've signed an NDA so I can't post the code, but basically I've taken out the filter and wrote the code like this: CustomerViewTypedView customer = new CustomerViewTypedView(); customer.Fill(); When you set breakpoints and step through the code, as soon as it gets to customer.Fill(); it throws that unhandled exception from the TypedListDAO.cs file. It states "SqlException was unhandled by user code. The multi-part identifier "Customer.CustomerID could not be bound."
The trace:
aaa.DLL!aaa.DaoClasses.TypedListDAO.GetMultiAsDataTable(SD.LLBLGen.Pro.ORMSupportClasses.IEntityFields fieldsToReturn = {SD.LLBLGen.Pro.ORMSupportClasses.EntityFields}, System.Data.DataTable tableToFill = {ExecutionView}, long maxNumberOfItemsToReturn = 0, SD.LLBLGen.Pro.ORMSupportClasses.ISortExpression sortClauses = null, SD.LLBLGen.Pro.ORMSupportClasses.IPredicate selectFilter = {SD.LLBLGen.Pro.ORMSupportClasses.PredicateExpression}, SD.LLBLGen.Pro.ORMSupportClasses.IRelationCollection relations = null, bool allowDuplicates = true, SD.LLBLGen.Pro.ORMSupportClasses.IGroupByCollection groupByClause = null, SD.LLBLGen.Pro.ORMSupportClasses.ITransaction transactionToUse = null, int pageNumber = 0, int pageSize = 0) Line 49 + 0x2d bytes C#