I have a case where I can't make Entity Framework build nice and fast sql for me. My case is that I have three entities. Shop, Sale and SalesLine. Sa ...
I have a case where I can't make Entity Framework build nice and fast sql for me. My case is that I have three entities. Shop, Sale and SalesLine. Sa ...
During a migration operation to drop a column, how can one generate SQL to check for the column's existence first before attempting to drop it? For a ...
I've built some data layers using Dapper with great pleasure. Of course maintaining the required SQL strings can be an issue, especially when the db s ...
I'd like to amend the SQL that's being generated by EF:CF when generating the database schema (DDL), as suggested by the Entity Framework team. How c ...
Because of some testing I need to do I need to generate a database with 400000 records I have done that with a simple My issue is how do I genera ...
This is my first question on SO. I have an ASP.NET 4.0 MVC3 project that is using EF Code First as ORM and FluentMigrator for version migrations. And ...
insert into table1(id, text) select (max(id)+1), "Something" from table1 How to generate this query with SQL::Abstract or SQL::Abstract::More? ...
I'm using Microsoft's Entity Framework as an ORM and am wondering how to solve the following problem. I want to get a number of Product objects from t ...
I have table in SQL Server DB: I need to make some T-SQL query that will return: Amount of entries in result set equals amount of months between ...
How do I generate the WHERE clause for this query using SQL::Abstract: SELECT COUNT(*) FROM table WHERE id = 111 AND NOT FIND_IN_SET(type, '1,2,3, ...
I am trying to make Doctrine generate SQL from a set of models that I created earlier with a YAML schema. Using the code below which comes from the ma ...
Given JPA annotated Entities, is it possible to generate (i.e. before runtime) the list of queries that will be performed by Hibernate for CRUD operat ...
I am soon going to be writing a component that takes metadata and generates dynamic SQL from it. Mostly we're talking SELECT, INSERT, UPDATE, DELETE s ...