Questions tagged [bltoolkit]

Business Logic Toolkit for .NET.

This tag is for questions related to the Business Logic Toolkit for .NET (BL Tookit).

89 questions
26
votes
1 answer

Why isn't BLToolkit more popular?

While searching around the net for light, fast ORMs targeting .NET, I came across BLToolKit, which seems absolutely amazing in terms of performance, openness, maintainability, and flexibility. However, I've also noticed that it has received very…
Carl Sagan
  • 982
  • 1
  • 13
  • 34
8
votes
6 answers

what orm BLToolkit is not more popular?

i search to work with data accces orm faster and speed for fetch and implementation I came across BLToolKit in the OrmBattle http://www.ormbattle.net/, which seems absolutely amazing in terms of performance, speed ,maintainability, and…
julia
  • 261
  • 1
  • 4
  • 12
6
votes
1 answer

BLToolkit alternative object mapper that supports stored procedures

I'm not too big of a fan of direct entity mappers, because I still think that SQL queries are fastest and most optimized when written by hand directly on and for the database (using correct joins, groupings, indexes etc). On my current project I…
Robert Koritnik
  • 103,639
  • 52
  • 277
  • 404
4
votes
1 answer

BLToolkit Oracle SP support

Does BLT support Oracle stored procedures? I've tried numerous methods, described below to get it to work but no luck. The stored procedure updates a table with several values. This is the stored procedure, a small test procedure. DROP PROCEDURE…
scope_creep
  • 4,213
  • 11
  • 35
  • 64
4
votes
1 answer

One-to-Many with no back reference in sub-related entity

If I have one-to-many relation between two entities (ie. Post and Comment) and have my master class defined as: public class Post { ... IList Comments { get; set; } } But my Comment sub-related class doesn't have a property of type…
Robert Koritnik
  • 103,639
  • 52
  • 277
  • 404
4
votes
1 answer

BLToolkit: Multiple resultsets?

I haven't found a way to retrieve two lists of objects from an SP with two select statements. Is it possible with BLToolkit, or can only hierarchical data be fetched in such a manner? I'm trying to replace a dataset containing two unrelated tables.
Carl R
  • 8,104
  • 5
  • 48
  • 80
4
votes
1 answer

BLToolkit - is it able to make async database operation?

I want to avoid blocking the executing thread by slow database read , and I like BLToolkit DataAccessor very much public abstract class PersonAccessor : DataAccessor { [SqlText(@"SELECT * FROM Person WHERE FirstName = @firstName")] public…
Mr.Wang from Next Door
  • 13,670
  • 12
  • 64
  • 97
3
votes
2 answers

BLToolkit with Linq -- Why is a `using` statement required?

I light of recent (extreme) performance issues with SubSonic 3, we are looking to migrate ORMs, preferably rewriting as little code as possible(which is mostly Linq). So I am looking at BLToolkit. One of the major differences I see between SubSonic…
Earlz
  • 62,085
  • 98
  • 303
  • 499
3
votes
2 answers

Field mapping in BLToolkit to class-type properties

My table schema (excerpt) create table dbo.MyEntity ( MyEntityID int identity not null primary key, Name nvarchar(50) not null unique, Description nvarchar(500) null, -- these two are optional fields MaxCount int…
Robert Koritnik
  • 103,639
  • 52
  • 277
  • 404
3
votes
3 answers

BLToolKit: how to insert a list of objects?

Is it possible with BLToolKit (http://bltoolkit.net) to create a set of records for list of object (batch insert)? If yes, how is this possible? Thanks a lot!
Budda
  • 18,015
  • 33
  • 124
  • 206
3
votes
1 answer

Why Reverse() cannot be converted into SQL?

My application is running under ASP.NET 4.0, which uses BLToolkti as ORM tool. I have some queryable expression: var q = db.GetTable() .Where(tb=>tb.TeamId==MyTeamId && tb.Season==MySeasonId) .OrderByDescending(tb=>tb.Id) .Take(20) …
Budda
  • 18,015
  • 33
  • 124
  • 206
3
votes
1 answer

Common Language Runtime detected an invalid program - ILGenerator

Basically i am trying to deserialize data that is inside an byte array into objects. I am trying to use GetString method of UTF8 Encoding in order to read a string. Here is part of my code: var mm = new DynamicMethod("get_value", typeof(object) …
Faisal
  • 73
  • 7
3
votes
1 answer

How to use InsertOrReplace in BLToolkit.3

I start using BLToolkit and there is a new advantage: InsertOrReplace When I try to use it there is an exception: "InsertOrUpdate method does not support identity field 'Margin.id'" My Model here: [TableName("Margin")] public class Margin …
user1706449
  • 159
  • 1
  • 1
  • 9
2
votes
6 answers

Best way to get long value from object?

I would like to know the best way to obtain long from returned BIGINT value from MSSQL server via BLToolkit which will be better? long.Parse(db.Parameter("@rowCount").Value.ToString()); or System.Convert.ToInt64(db.Parameter("@rowCount").Value); ?
Alexei
  • 1,289
  • 3
  • 19
  • 34
2
votes
1 answer

BLToolkit equivalent of LoadWith from L2S

When working with Linq to SQL you can use DataLoadOptions to specify which "child" objects to load. Is there a similar technique with BLToolkit? It's nice that with BLT I can create the BO directly, like: from p in db.Parent select new Parent { …
pbz
  • 8,865
  • 14
  • 56
  • 70
1
2 3 4 5 6