llblgenpro

Create (LLBLGen) Linq query dynamicly with strings

你说的曾经没有我的故事 提交于 2020-01-01 17:58:48
问题 We need to generate LINQ queries which are 100% unknown during coding (design time). This is because the logic is available in our framework which is 100% separated from any data projects. For data we use LLBLGen generated data access code. Normally by using invokes on the DLL, which we specify to the framework (not reference) we can create code to retrieve data. But now we need to do this by linq. How could we create a query like: var q = from customer in m.Customer select new { customer

LLBLGen: How can I softdelete a entry

痞子三分冷 提交于 2020-01-01 03:35:06
问题 I have inherited a project that uses LLBLGen Pro for the DB layer. The DB model requires that when a entry is deleted a flag (DeletedDate is set to the current time). The last programmer ignored this requirement and has used regular deletes throughout the entire application. Is there a way to set the code generator to do this automatically or do I have to overload each delete operator for the Entities that requires it? 回答1: I implemented this in SQL Server 2005 using INSTEAD OF triggers on

LLblgen: Select distinct?

≡放荡痞女 提交于 2019-12-13 14:05:05
问题 I can't seem to figure out how I can select only distinct entries in Llblgen 2.6 self-service model I essentially want this query. select distinct City from peopleTable where *predicates* I've got my PeopleCollection and I'm not sure if there's a distinct method I can call or argument I can pass to GetMulti(). 回答1: Entities by definition cannot be distinct - even if they have the same value they are different rows in the same table. You could use a TypedList or DynamicList to get a distinct

llblgen Pro SELECT TOP (n) equivalent query

安稳与你 提交于 2019-12-13 05:38:31
问题 Is it possible to perform a select top (n) query in llblgen pro?...not LINQ. If so, how can I achieve that using the SelfServicing? 回答1: Just use the GelMulti overloads that accepts the maxItemsToReturn parameter: int itemsToReturn = 10; OrderCollection orders = new OrderCollection(); orders.GetMulti(null, itemsToReturn); This is the generated SQL: SELECT TOP(@p2) [Northwind].[dbo].[Orders].[CustomerID] AS [CustomerId], ... FROM [Northwind].[dbo].[Orders] Parameter: @p2 : Int64. Length: 0.

Convert LLBLGen model class to View Model objects?

☆樱花仙子☆ 提交于 2019-12-12 01:36:48
问题 I do not think I worded the title correctly. I am trying to return results to populate a view. the error message I get in the browser console is "A circular reference was detected while serializing an object of type" all of the documentation says to flatten out the object and exclude properties that are not related to the model. creating a anonymous type is a work around that seems to work for some. I cannot get either to work. if I try something like var Results = from RS in results select

Create (LLBLGen) Linq query dynamicly with strings

喜你入骨 提交于 2019-12-04 17:14:27
We need to generate LINQ queries which are 100% unknown during coding (design time). This is because the logic is available in our framework which is 100% separated from any data projects. For data we use LLBLGen generated data access code. Normally by using invokes on the DLL, which we specify to the framework (not reference) we can create code to retrieve data. But now we need to do this by linq. How could we create a query like: var q = from customer in m.Customer select new { customer.Number, customer.City, customer.CountryEntity.Name }; from strings only. We would have 1 string called

Which ORM tool should I use for .Net development [closed]

一笑奈何 提交于 2019-11-30 13:23:06
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . My company is looking to use an ORM for new development in .Net. We are currently looking at nHibernate, because of its popularity,

Which ORM tool should I use for .Net development [closed]

若如初见. 提交于 2019-11-30 07:15:05
My company is looking to use an ORM for new development in .Net. We are currently looking at nHibernate, because of its popularity, however LLBLGen is another option that we may consider. Cost is not a primary factor. We need a solution that provides good separation of the domain model from the database, a good caching strategy, development productivity (i.e. if I can edit it in a GUI instead of config files, great), good customer support. I know that nHibernate is very popular, but I also know that the price (it's free) may be part of that reason for open source types. Since cost isn't a

nHibernate versus LLBLGen Pro

蓝咒 提交于 2019-11-30 05:54:54
I am trying to work out with ORM tool to move over to and have narrowed it down to two candidates. nHibernate or LLBLGen Pro Please can you guys give me pros and cons in using both these tools especially if you have experience in both. I am not really interested in any other tools but am wanting some heads up so I can decide which tool to spend time learning.... I already know that one is free and one isn't, I also know that nHibernate might take some learning.... Many thanks, Richard 7wp I have used both. At first I was sold on nHibernate and refused to try anything else even though I knew

nHibernate versus LLBLGen Pro

大城市里の小女人 提交于 2019-11-29 05:14:59
问题 I am trying to work out with ORM tool to move over to and have narrowed it down to two candidates. nHibernate or LLBLGen Pro Please can you guys give me pros and cons in using both these tools especially if you have experience in both. I am not really interested in any other tools but am wanting some heads up so I can decide which tool to spend time learning.... I already know that one is free and one isn't, I also know that nHibernate might take some learning.... Many thanks, Richard 回答1: I