1

Closed

Multiple Keys are not generated in functions

description

If I have a database with multiple keys for instance in my example, the db has:
Name
UserId

If I run SalarDbCodeGenerator, I get the SQLDeleteCommand as
Delete ... Where Name = @Name AND UserId = @UserId
so far, so good...

However, the Delete function, created above, that calls this command, does NOT work, it creates ONLY

public void Delete(String Name)

it should create

public void Delete(String Name, String UserId) ...

This is using the Dapper SQLINQ.

Would be helpful if this bug could be fixed as soon as possible... :-)
Thank you otherwise for a really good software!
Closed Aug 10, 2013 at 6:32 AM by salar2k
Fixed in #570939cf3457

comments

salar2k wrote Aug 10, 2013 at 4:06 AM

Thanks for the report, adding support of multiply keys was in the to-do list. I'm making it top priority.

salar2k wrote Aug 10, 2013 at 6:31 AM

The bug turns out to be a pattern issue.
It is now fixed, grab the new patterns here:
https://salardbcodegenerator.codeplex.com/SourceControl/latest#SalarDbCodeGenerator/Patterns/

Let me know if there are any other issues in the bug-fixes.

St0ffe wrote Aug 12, 2013 at 9:30 AM

In the commit:
https://salardbcodegenerator.codeplex.com/SourceControl/latest#SalarDbCodeGenerator/Patterns/
You have referenced the dlls:
Mono.Security.dll
Npgsql.dll
policy.2.0.Npgsql.dll
To the packages dir, all other dlls are referenced in the:
references
dir.

This would be great if this could be fixed, so the project can build.

salar2k wrote Aug 13, 2013 at 6:54 AM

it is done.