I want to execute SQL statement with paraemeters in ServiceStack ormlite
String.Format("SELECT OBJECT_ID(@name)", name);
I want the best way.
If you need the POCO result you can use:
List<Person> results = db.SqlList<Person>("SELECT * FROM Person WHERE Age < @age", new { age=50});
Reference: https://github.com/ServiceStack/ServiceStack.OrmLite#typed-sqlexpressions-with-custom-sql-apis
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments