LLBLGen is an Object Relational Mapper (O/RM) for .NET. With it you can generate your data access layer for multiple O/RM frameworks (LLBLGen Pro Runtime Framework, Entity Framework, Linq to Sql, and NHibernate 2.x / 3.0 (hbm.xml and FluentNHibernate)).
Questions tagged [llblgenpro]
165 questions
0
votes
1 answer
LINq query throws exception
I am running the following query
var allroles = from l in metaData.Role select l.RoleId;
var personroles = from k in metaData.PersonRole
where k.PersonId == new Guid(Session["user_id"].ToString())
select…

Akshita
- 849
- 8
- 15
0
votes
1 answer
Llblgen update table?
Simply i wanna know
update table set (name,surname) values ('John','Locke') where Id=1
sql statment equivalent in llblgen, i tried below code but it didn't work.
Entity e = new Entity();
entity.Id = 1;
…

dextererer
- 65
- 2
- 3
- 8
0
votes
4 answers
What's the best ORM for DDD?
I'd prefer a commercial solution. So not NHibernate. Now i'm playing with LLBLGen pro and i like it but it doesn't seem be DDD friendly.

user137348
- 10,166
- 18
- 69
- 89
0
votes
1 answer
LLBLGenProQuery Vs IQueryable
I am using LLBLGen Pro, MVC 3 and VB.NET. I am trying to return an object of Iqueryable but i am getting following exception
Unable to cast object of type…

Baahubali
- 4,604
- 6
- 33
- 72
0
votes
1 answer
Using Linq with LLBLgen Pro
I am trying to do the following using MVC3, LLBLGEN PRO and it's throwing me the following error:
Mapping types:
LLBLGenProQuery1 -> LLBLGenProQuery1
SD.LLBLGen.Pro.LinqSupportClasses.LLBLGenProQuery1[[Mail.DAL.EntityClasses.TblCostCentreEntity,…

Baahubali
- 4,604
- 6
- 33
- 72
0
votes
1 answer
LLBL Linq variable number of joins
I'm using the Linq syntax for LLBL. I have a need to join to a particular table a variable number of times. I have a query that does work, but I'm trying to make it faster. I have the raw SQL, but I'm not sure how to code it in Linq or if I even…

Dan
- 533
- 8
- 29
0
votes
0 answers
What is the benefit of using only the 'Controller' part of MVC?
What possible benefits can one derive by using only the controller part of MVC in a service oriented architecture pattern. The database access layer, created by LLBLGen Pro, is manipulated without using the MVC 'model'. And, as we've been using DNN…

MontyPython
- 2,906
- 11
- 37
- 58
0
votes
1 answer
LLBLGen default variable field values reads not null but are null
I have an LLBLGen entity.
MyEntity{
public Decimal Foo; //Stored in database as a NOT NULL field
}
....
public void SomeMethod(){
MyEntity entity = new MyEntity(); //on initial inspection Foo reads as "0"
adapter.SaveEntity(entity);…

Craig
- 381
- 5
- 22
0
votes
3 answers
Creating same method in more than one aspx files
I have a method which I have to use in two aspx pages. This method calls method in Data Access Layer. This method is 35 lines long. This method is not using any UI element.
Structure of my project is like this.
Solution MyProject
- BaseWeb
-…

Kashif
- 14,071
- 18
- 66
- 98
0
votes
1 answer
Why does MVC call set methods on my model when my string is too long?
In an ASP.NET MVC application, I have a model defined as follows:
public class TestModel
{
private string _firstName;
[DisplayName("First Name")]
[StringLength(20)]
public string FirstName
{
get { return _firstName; }
…

Craig Shearer
- 14,222
- 19
- 64
- 95
0
votes
2 answers
Can database fields be dragged and dropped (as textboxes, not a gridview) into an ASP.Net form?
In VisualStudio, when you drag and drop a table or an individual column from a data connection in server explorer, a gridview is created.
What I want to be able to do is drag and drop the columns to make a quick and dirty detail form to display an…

tbone
- 5,715
- 20
- 87
- 134
0
votes
1 answer
ORM: LLBLGen projects and others
ORM: nHibernate and LLBLGen and others...
In LLBLGen you define all your database under a single project, im not sure if you are suppose to define all your database under a single project or define database per application under a single…

001
- 62,807
- 94
- 230
- 350
0
votes
1 answer
SELECT TOP 100 with JOIN using LLBLGEN
I am using LLBLgen as ORM and want to achieve the following:
Table1:
SessionId
Table2:
SessionId
Timestamp
SELECT TOP 100 * FROM Table1
INNER JOIN Table2 ON Table1.SessionId = Table2.SessionId
ORDER BY Table2.Timestamp DESC
This code is…

StampedeXV
- 2,715
- 2
- 24
- 40
0
votes
1 answer
How to eliminate race condition during db transaction - read row count from db, calculate input, then insert value to db?
Scenario:
A save function first reads the total number of rows from a table in the db.
Based on the number of rows, a unique input value is calculated. This value is included in the row that is then inserted into the same table.
Problem:
Two…

Tom
- 510
- 1
- 7
- 24
0
votes
2 answers
Unable to attach SQL Server CE 3.5 database to LLBLGen Pro
I have the .sdf for SQL Server Compact Edition database of Northwind, I'm trying to attach it to llblgen pro but it refuses to connect, in the 'database drivers' drop down I've selected SQL Server 2000/etc, etc (there is no SQL Server CE in the drop…

meds
- 21,699
- 37
- 163
- 314