Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: What should be the principles of multilayer software design? Pin
Richard Deeming23-Jul-23 23:11
mveRichard Deeming23-Jul-23 23:11 
QuestionMulti-threading Pin
MAW3017-Jul-23 9:52
MAW3017-Jul-23 9:52 
AnswerRe: Multi-threading Pin
Gerry Schmitz17-Jul-23 15:32
mveGerry Schmitz17-Jul-23 15:32 
AnswerRe: Multi-threading Pin
Dave Kreskowiak17-Jul-23 15:53
mveDave Kreskowiak17-Jul-23 15:53 
QuestionParameterized Query Pin
Richard Andrew x6416-Jul-23 8:47
professionalRichard Andrew x6416-Jul-23 8:47 
AnswerRe: Parameterized Query Pin
Dave Kreskowiak16-Jul-23 10:44
mveDave Kreskowiak16-Jul-23 10:44 
GeneralRe: Parameterized Query Pin
Richard Andrew x6416-Jul-23 11:39
professionalRichard Andrew x6416-Jul-23 11:39 
AnswerRe: Parameterized Query Pin
OriginalGriff16-Jul-23 11:24
mveOriginalGriff16-Jul-23 11: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 11:42
professionalRichard Andrew x6416-Jul-23 11:42 
GeneralRe: Parameterized Query Pin
OriginalGriff16-Jul-23 18:34
mveOriginalGriff16-Jul-23 18:34 
GeneralRe: Parameterized Query Pin
Richard Andrew x6417-Jul-23 5:35
professionalRichard Andrew x6417-Jul-23 5:35 
AnswerRe: Parameterized Query Pin
Gerry Schmitz16-Jul-23 19:32
mveGerry Schmitz16-Jul-23 19:32 
GeneralRe: Parameterized Query Pin
Richard Andrew x6417-Jul-23 5:33
professionalRichard Andrew x6417-Jul-23 5:33 
QuestionGetting a VST3 effect name and vendor Pin
spice3d8-Jul-23 9:19
spice3d8-Jul-23 9:19 
AnswerRe: Getting a VST3 effect name and vendor Pin
Pete O'Hanlon8-Jul-23 10:09
mvePete O'Hanlon8-Jul-23 10:09 
GeneralRe: Getting a VST3 effect name and vendor Pin
spice3d8-Jul-23 11:18
spice3d8-Jul-23 11:18 
QuestionAdvices for my learning path Pin
coco2437-Jul-23 21:10
coco2437-Jul-23 21:10 
AnswerRe: Advices for my learning path Pin
OriginalGriff7-Jul-23 21:19
mveOriginalGriff7-Jul-23 21:19 
AnswerRe: Advices for my learning path Pin
Richard Andrew x648-Jul-23 3:26
professionalRichard Andrew x648-Jul-23 3:26 
GeneralRe: Advices for my learning path Pin
coco2439-Jul-23 9:07
coco2439-Jul-23 9:07 
GeneralRe: Advices for my learning path Pin
jschell10-Jul-23 3:50
jschell10-Jul-23 3:50 
AnswerRe: Advices for my learning path Pin
BillWoodruff9-Jul-23 15:06
professionalBillWoodruff9-Jul-23 15:06 
GeneralRe: Advices for my learning path Pin
coco24310-Jul-23 18:34
coco24310-Jul-23 18:34 
GeneralRe: Advices for my learning path Pin
BillWoodruff10-Jul-23 18:58
professionalBillWoodruff10-Jul-23 18:58 
GeneralRe: Advices for my learning path Pin
Richard MacCutchan10-Jul-23 21:55
mveRichard MacCutchan10-Jul-23 21: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.