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
2
votes
2 answers

BLToolkit - Current readiness for Azure

Does anybody know if BLToolkit has been tested and certified for use with Azure Sql and if it supports the dropped connection retry functionality? And if not are there any plans to get it tested and passed?
scope_creep
  • 4,213
  • 11
  • 35
  • 64
2
votes
2 answers

Speed-up BLToolkit startup time

Is it possible to speed-up BLToolkit when used for the first time? Right now it takes 3-4 seconds each time I start the application, later on it runs just fine. Is there anything I can do about this?
Mladen Macanović
  • 1,099
  • 7
  • 17
2
votes
1 answer

Scalar functions using BLToolkit and Linq

I'm in the process of converting my SQL procedures to Linq using the BLToolkit library. Now I'm stuck on a little problem so if anyone know is this possible I will really appreciate the help. Anyway I have the sql query that looks something like…
Mladen Macanović
  • 1,099
  • 7
  • 17
2
votes
0 answers

BLToolkit Complex Mapping Using SELECT JOIN

Trying to use BLToolkit mapper in my project. There is a thing that I really don't know how to solve , the deal is that I have 2 classes Content and Comment. [MapField("CommentItemId","CommentContent.ContentId")] public class Comment { …
Eramir
  • 482
  • 1
  • 5
  • 18
2
votes
1 answer

Subtracting days from a date using linq

I have a function, which takes in a number of days (var daysPrior), and a date (var inDate). The date is the current date we are looking at (for live system, it will be today's date). The number of days needs to be subtracted from a date field in…
GreymondTheLong
  • 48
  • 1
  • 10
1
vote
2 answers

BLToolkit: Public read-only properties

Assume I have a business object that has some properties that should be read-only. For example: public class Order { ... public DateTime OrderDate { get; set; } ... public decimal OrderTotal { get; set; } } Also assume that…
matk
  • 1,528
  • 2
  • 14
  • 25
1
vote
2 answers

BLToolKit, Linq Query, SQL Not what I expected

I am using BLToolKit in a project of mine and I was trying to get this to work. What I don't like is that I am trying to average a bunch of temps down to the minute, but the select statement that is being generated groups by the minute but then…
XenoPuTtSs
  • 1,254
  • 1
  • 11
  • 31
1
vote
2 answers

Mapping a code table in BLToolkit

In my database, there is one large "code" table with system code look-ups for values used all over the system. Like so: [TableName("code_entries")] public class Code { [MapField("code_nbr")][PrimaryKey, Identity] …
Jason
  • 897
  • 6
  • 18
1
vote
2 answers

Is batch or bulk insert possible in Linq 2 Sql ?

My scenario is little bit wierd, I have a list of entities, say i have ten items in list which will go to three different tables , associated to each other. I am using Linq 2 Sql and I need to insert it in a single hit instead of multiple…
Bumble Blee
  • 79
  • 1
  • 10
1
vote
1 answer

BLToolkit custom data provider

Is there any examples of custom data provider for BLToolkit? I need MongoDB provider and InMemory data provider. For example, I am reading some records from xml or files, and need to show them through BLToolkit selections and queries.
Oleksii G.
  • 487
  • 5
  • 20
1
vote
1 answer

BLToolkit update with join

Anyone know how can I write the following update code by using the BLToolkit syntax, where I need to join two tables, and update one of them. In SQL Server this is done like this: update Table1 set Col1 = T.Col1 - TT.Col2 from @tempTable as…
Mladen Macanović
  • 1,099
  • 7
  • 17
1
vote
1 answer

Table-value functions in BLToolkit

Is it possible to use SQL Server table-value functions by using the BLToolkit library? I would like to use it within the Linq query, but I couldn't find anything regarding this on the library wiki.
Mladen Macanović
  • 1,099
  • 7
  • 17
1
vote
0 answers

How to change connection string in runtime using Bltoolkit

I am using "Bltoolkit" to access sql server data.It works fine as per my requirement.Now I am trying to change connection string in runtime.I have tried below code but the connection is not changed that means its shows the default connection…
KH IT
  • 19
  • 1
  • 7
1
vote
1 answer

Bltoolkit oracle clob type

I use bltoolkit as orm and i had a problem with clob type. I have a long string value and i got error while update operation. Error: ORA01704 - String literal too long. Checked table and my column type is clob. There is no clob option in bltoolkit…
Mennan
  • 4,451
  • 13
  • 54
  • 86
1
vote
1 answer

BLToolKit save null instead of 0

I have this weird problem where BLToolkit saves NULL instead of 0 in our database. Demo to reproduce the bug If you look the image, this is my values that will be saved. (gIdx stand for GroupIndex) Here are the results in the database. If you look…
poudigne
  • 1,694
  • 3
  • 17
  • 40