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
1
vote
1 answer

How to populate a table by Insert or Update

I access DB via BLToolkit. One of my tables has: fields: Id, TeamId, PlayerId, Val1, Val2 primary key - field Id, autoincremented composite unique key which consists from 2 fields TeamId and PlayerId data fields Val1, Val2 I've created list of…
Budda
  • 18,015
  • 33
  • 124
  • 206
1
vote
1 answer

BLToolKit generates wrong SQL

I'm using BLToolKit as a ORM Mapper. My problem is, that it generates the wrong SQL. I have this query: var qry = from i in s.Query() join o in s.Query() on i.Id equals o.ChannelID into p1 select…
Jochen Kühner
  • 1,385
  • 2
  • 18
  • 43
1
vote
1 answer

How to update collection via BlToolkit

I have collection of users identified by property Id and for each user I want to update his username to something like username+"!". In bltoolkit I try it like this: using(var db = new DbManager) { foreach(var user in users) { …
John Smith
  • 1,783
  • 6
  • 22
  • 36
1
vote
1 answer

BLToolkit - Operation is not valid due to the current state of the object

We're using BLToolkit library in our ASP.NET MVC 4 application. I get an "Operation is not valid due to the current state of the object" when trying to execute the LINQ statement below: public List
Jen
  • 153
  • 2
  • 13
1
vote
1 answer

Map some of table fields into a dictionary

We have a legacy system which has the ability to add custom fields to its entites. This feature is implemented badly, to be exact: each entity table is extended with fields Custom1, ... Custom 10, and moreover, there's big table CustomFields…
starteleport
  • 1,231
  • 2
  • 11
  • 21
1
vote
1 answer

bltoolkit sql query set explicitly

Is there any way how to get a SQL query result from a bltoolkit? I need to set the query explicitly.. for example: SELECT * FROM table thanks
Wally_the_Walrus
  • 219
  • 1
  • 5
  • 17
1
vote
2 answers

How to connect SqliteDB using BLToolkit on ASP.NET?

Hi i got an error while connection to my sqlitedb. I create my sqlitedb using Firefox Sqlite Addon. MyConn : (webconfig)
Mennan
  • 4,451
  • 13
  • 54
  • 86
1
vote
1 answer

Out parameters of user defined types in Oracle with BLToolkit

I have been trying to use BLToolkit to activate an Oracle stored procedure which takes a User Defined Type as an argument as an output parameter and changes it. I have managed to do this on a primitive type, and and also by manually calling…
Jason
  • 4,034
  • 4
  • 40
  • 62
1
vote
2 answers

How to get list of object by list of ids with BLToolkit?

I'm trying to write a code that will be translated into the following query: SELECT * FROM players WHERE Id IN (xxx) With MS-SQL and linq2sql I used "Contains" construction and that worked well. Now (for MySQl and BLToolkit) I did it this way: …
Budda
  • 18,015
  • 33
  • 124
  • 206
0
votes
2 answers

bltoolkit association with stored procedure execution

I have 2 entities: [TableName("is_userrole")] public class UserRole { [MapField("id"), PrimaryKey, Identity, public Guid id; [NotNull] public string Name; } [TableName("is_users")] public class User …
Black Moon
  • 1
  • 2
  • 6
0
votes
1 answer

BLToolkit + T4 generation + MySQL database

I receive an exception running my T4 template: Running transformation: System.ArgumentNullException: Value cannot be null. Parameter name: type at System.Activator.CreateInstance(Type type, Boolean nonPublic) at…
0
votes
1 answer

how to set display name on enum fields by BLToolkit?

i have a enum like that : public enum Mode { [*"I need a display name attribute to show in combobox"*] Active, [*"I need a display name attribute to show in combobox"*] DeActive } I want to use it as a dataSource in a comboBox and i need to set…
Iman Namvar
  • 162
  • 1
  • 1
  • 11
0
votes
1 answer

BLToolkit + T4 generation + PostgreSQL database, possible?

want to generate my data layer using bltoolkit, T4 templates and postgreSQL. I receive an exception running my T4 template, based on the one suggested by the documentation: Error 5 Running transformation: System.ArgumentNullException: Value cannot…
0
votes
2 answers

Can BLTookit Generate Db and Tables

I am currently using Entity Framework Code First to generate my MySQL tables and schema from my classes. However, I would like to switch to BlToolkit. Does this ORM support table generation from classes decorated with various attributes? If so, can…
Jeffrey Kevin Pry
  • 3,266
  • 3
  • 35
  • 67
0
votes
1 answer

BLToolkit.4 : DbManager could not be found

I'm trying to create new application using BLToolkit but i can't compile the code, i get this error: The type or namespace name 'DbManager' could not be found (are you missing a using directive or an assembly reference? This class is described…
Alexei
  • 1,289
  • 3
  • 19
  • 34