Click here to Skip to main content
15,792,510 members
Home / Discussions / C#
   

C#

 
AnswerRe: What should be the principles of multilayer software design? Pin
Richard Deeming24-Jul-23 0:11
mveRichard Deeming24-Jul-23 0:11 
QuestionMulti-threading Pin
MAW3017-Jul-23 10:52
MAW3017-Jul-23 10:52 
AnswerRe: Multi-threading Pin
Gerry Schmitz17-Jul-23 16:32
mveGerry Schmitz17-Jul-23 16:32 
AnswerRe: Multi-threading Pin
Dave Kreskowiak17-Jul-23 16:53
mveDave Kreskowiak17-Jul-23 16:53 
QuestionParameterized Query Pin
Richard Andrew x6416-Jul-23 9:47
professionalRichard Andrew x6416-Jul-23 9:47 
AnswerRe: Parameterized Query Pin
Dave Kreskowiak16-Jul-23 11:44
mveDave Kreskowiak16-Jul-23 11:44 
GeneralRe: Parameterized Query Pin
Richard Andrew x6416-Jul-23 12:39
professionalRichard Andrew x6416-Jul-23 12:39 
AnswerRe: Parameterized Query Pin
OriginalGriff16-Jul-23 12:24
mvaOriginalGriff16-Jul-23 12:24 
SQLite isn't open to SQL Injection, because it doesn't support multiple commands in the same command*: it doesn't support bulk inserts, even via a DataAdapter. it is meant to be a "lite" version, after all!

So if you build your command with multiple VALUE fields, it is technically safe (but needs to be commented in case someone later converts to MSSql / MySql)
I'd recommend using a transaction though, just to speed the operation up if nothing else...
This may help: https://stackoverflow.com/questions/1711631/improve-insert-per-second-performance-of-sqlite[^]

* Unless you use the CommandText property instead of a SqlLiteCommand - then you are wide open to SQL Injection.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: Parameterized Query Pin
Richard Andrew x6416-Jul-23 12:42
professionalRichard Andrew x6416-Jul-23 12:42 
GeneralRe: Parameterized Query Pin
OriginalGriff16-Jul-23 19:34
mvaOriginalGriff16-Jul-23 19:34 
GeneralRe: Parameterized Query Pin
Richard Andrew x6417-Jul-23 6:35
professionalRichard Andrew x6417-Jul-23 6:35 
AnswerRe: Parameterized Query Pin
Gerry Schmitz16-Jul-23 20:32
mveGerry Schmitz16-Jul-23 20:32 
GeneralRe: Parameterized Query Pin
Richard Andrew x6417-Jul-23 6:33
professionalRichard Andrew x6417-Jul-23 6:33 
QuestionGetting a VST3 effect name and vendor Pin
spice3d8-Jul-23 10:19
spice3d8-Jul-23 10:19 
AnswerRe: Getting a VST3 effect name and vendor Pin
Pete O'Hanlon8-Jul-23 11:09
subeditorPete O'Hanlon8-Jul-23 11:09 
GeneralRe: Getting a VST3 effect name and vendor Pin
spice3d8-Jul-23 12:18
spice3d8-Jul-23 12:18 
QuestionAdvices for my learning path Pin
coco2437-Jul-23 22:10
coco2437-Jul-23 22:10 
AnswerRe: Advices for my learning path Pin
OriginalGriff7-Jul-23 22:19
mvaOriginalGriff7-Jul-23 22:19 
AnswerRe: Advices for my learning path Pin
Richard Andrew x648-Jul-23 4:26
professionalRichard Andrew x648-Jul-23 4:26 
GeneralRe: Advices for my learning path Pin
coco2439-Jul-23 10:07
coco2439-Jul-23 10:07 
GeneralRe: Advices for my learning path Pin
jschell10-Jul-23 4:50
jschell10-Jul-23 4:50 
AnswerRe: Advices for my learning path Pin
BillWoodruff9-Jul-23 16:06
professionalBillWoodruff9-Jul-23 16:06 
GeneralRe: Advices for my learning path Pin
coco24310-Jul-23 19:34
coco24310-Jul-23 19:34 
GeneralRe: Advices for my learning path Pin
BillWoodruff10-Jul-23 19:58
professionalBillWoodruff10-Jul-23 19:58 
GeneralRe: Advices for my learning path Pin
Richard MacCutchan10-Jul-23 22:55
mveRichard MacCutchan10-Jul-23 22:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.