Request Execute is failed if one of fields to be mapped has DateTime field and corresponding value in DB has '0000-00-00' or '0001-01-01'. The following error is returned
Unable to convert MySQL date/time value to System.DateTime
Is there any…
I am using BLToolKit (ver. 4.3.2.0) and MySql Connector (BLToolkit.Data.DataProvider.MySql.4 of version 4.3.2.0) from NuGet.
When I run my web.app in the mono-environment all work perfectly. But on the IIS I get an exception:
FileLoadException:…
I guess it is something like sgen.exe which generates some serialization classes in separate assembly. Is that it? Should generated assembly be referenced? If so, by which project?
I have noticed that some LINQ queries are very slow, when executed…
I use BLToolkit with mysql and when I try to insert a record to a table, I am getting a query like this:
INSERT INTO `P`
(
`Name`
)
VALUES
(
\0Name
);
As you can see, this not the best mysql query.
Classes:
public class P
{
…
In my ASP.NET web site I persist objects retrieved from DB for some time and make sure that the only single instance of object is created per DB record.
I also use [InstanceCache] to cache calculated value for one of business objects, object is kept…
I get an error when I try to do this.
And here is my code.
public abstract void SaveSchedule(DataTable items);
The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Table-valued parameter 1 ("@items"),…
BLToolkit has InsertBatch method to insert a set of objects.
What is the meaning of 'maxBatchSize' parameter? I was not able to find any documentation on that, neither that clear from source code.
Please advise.
Thanks.
P.S. I believe that is…
I have SP like this
CREATE PROCEDURE dbo.pPersonGetIDByName
@Name nvarchar(50),
@ID int output
AS ...
and appropriate DataAccessor method
[ScalarSource(ScalarSourceType.OutputParameter)]
abstract int GetIDByName(string Name);
I understand it as…
Im trying to extract this expression:
t => t.DayEnd == s.DayEnd && t.DayStart == s.DayStart
into extern variable called expression.
And I want it to extract it in a way so i can use this variable in the next BlToolkit LINQ query.
private void…
I use BlToolkit and want it to do not use parameters in final compiled query.
EXAMPLE:
The query it compiles :
-- Sql MsSql2005
-- DECLARE @p1 Int64
-- SET @p1 = 101671702
SELECT * FROM dbo.Table1 WHERE Id = @p1
but I want it to compile like…
Im trying to add a constant to a LINQ query in BLtoolkit.
var query = dbManager.Table.Select(x=>new { x.column, cnst = 1 });
but in the result there is only 'column' column, but no 'cnst' column.
I'm using BaseRepository in asp .Net MVC project. Edit operation works but in Add operation, I should make a trick to make it work. In detail, my base repository and BaseEntity classes:
public class BaseRepository : IRepository
I'm using bltoolkit in my ASP.Net application , I use repository pattern to manage my data access layer. foreach operation i open a new DbManager . I cannot find a way to open and dispose the DbManager Object per request or session . any ideas
is it possible to write such a query via linq in BlToolkit?
SELECT * FROM X pd
WHERE EXISTS (SELECT 1 FROM Y mm
WHERE VersionMaster > 0
)
I mean - is it possible to write an 'Exists' construct in linq so the BlToolkit would understand it?
thanks