Sem descrição

Lith 3db58783e4 Merge branch 'develop' of http://git.lith.cloud:8/VitormLib/Vitorm into develop há 11 meses atrás
.github 8ce95af3dc init há 11 meses atrás
Publish 3db58783e4 Merge branch 'develop' of http://git.lith.cloud:8/VitormLib/Vitorm into develop há 11 meses atrás
src 6306deeafc DevOps 3.2 há 11 meses atrás
LICENSE 8ce95af3dc init há 11 meses atrás
README.md fc4054b1d4 vitorm há 11 meses atrás
Vitorm.sln a4cdaf0bdd Vitorm há 11 meses atrás
clean-temp.bat 8ce95af3dc init há 11 meses atrás

README.md



Vitorm

Vitorm: an simple orm by Vit.Linq

source address: https://github.com/VitormLib/Vitorm


Build NuGet

complex-query-operators https://learn.microsoft.com/en-us/ef/core/querying/complex-query-operators sqlite/transactions https://learn.microsoft.com/en-us/dotnet/standard/data/sqlite/transactions


cur

rename to Vitorm

support ElasticSearch

support ClickHouse

remove depency of Dapper

try to make it clean

DbContext.QueryProcedure(arg)

TODO

Save SaveRange

DbFunction.PrimitiveSql

#region #4 cross database join {

var dbContext = DataSource.BuildInitedDatabase(System.Reflection.MethodBase.GetCurrentMethod()?.Name ?? "_");
var users2 = dbContext.Query<User>();

var query = (from user in users
            from father in users2.Where(father => user.fatherId == father.id).DefaultIfEmpty()
            select new
            {
                user,
                father
            });  

var userList = query.ToList();
Assert.AreEqual(4, userList.Count);
Assert.AreEqual(3, userList.First().user.id);

} #endregion

where (t0.id + 1 = 4) and (t0.fatherId = cast(5 as integer))

will cause column mismatch if using inner select like:

select t2.id,t2.name,t2.birth,t2.fatherId,t2.motherId,t3.name from (

 select `t0`.`id`,`t0`.`name`,`t0`.`birth`,`t0`.`fatherId`,`t0`.`motherId`,`t1`.`id`,`t1`.`name`,`t1`.`birth`,`t1`.`fatherId`,`t1`.`motherId`
 from `User` as t0
 left join `User` as t1 on `t0`.`fatherId` = `t1`.`id`

) as t2 left join User as t3 on t2.motherId = t3.id


Done

support Mysql