Click here to Skip to main content
       

C#

 
QuestionRead structured text file to listview in C #? PinmemberMember 245846730-Sep-12 23:10 
AnswerRe: Read structured text file to listview in C #? PinmemberSmart Arab30-Sep-12 23:19 
AnswerRe: Read structured text file to listview in C #? PinmemberEddy Vluggen1-Oct-12 1:01 
QuestionC# linq issue Pinmemberclassy_dog30-Sep-12 20:00 
AnswerRe: C# linq issue PinprotectorPete O'Hanlon30-Sep-12 20:15 
AnswerRe: C# linq issue PinmentorDaveyM6930-Sep-12 22:54 
AnswerRe: C# linq issue PinmemberJohn Brett2-Oct-12 6:14 
QuestionHow to store string queries in c# function Pinmembernitin_ion30-Sep-12 17:52 
I am using string queries
SELECT CASE WHEN COALESCE(title2, title)='RUNTIME PARAMETER'
in function.
It is ok but I want them not to be written in the function because anyone developer can mess it up. There will be lot of queries which will get run time parameters also from functions.
 
I want it somewhere so that it is safe. But it should be available during run time, means if i want to replace a query the i should be able to so that without the need of building and deploying the files.
 
One way i was thinking is to use either resource files or config files but i cannot make mind. I don't want the performance to take a hit yet to maintain flexibility and maintainability.
 
Using resource files means to load read text which will incur some performance loss but is better than config files as they are not safe and easily readable.
 
Any suggestion?
AnswerRe: How to store string queries in c# function PinprotectorPete O'Hanlon30-Sep-12 19:33 
QuestionC# 2008 update sql server table Pinmemberdcof30-Sep-12 14:19 
QuestionQuartzTypeLib and subtitles Pinmemberaudaijihad30-Sep-12 6:22 
AnswerRe: QuartzTypeLib and subtitles PinmemberRavi Bhavnani30-Sep-12 6:47 
GeneralRe: QuartzTypeLib and subtitles Pinmemberaudaijihad30-Sep-12 11:33 
QuestionUpdating a Label in 2 forms simultaneously PinmemberCSharpNewbie 229-Sep-12 21:37 
AnswerRe: Updating a Label in 2 forms simultaneously PinmemberSmart Arab29-Sep-12 22:40 
AnswerRe: Updating a Label in 2 forms simultaneously PinmvpDave Kreskowiak30-Sep-12 3:01 
GeneralRe: Updating a Label in 2 forms simultaneously PinmemberCSharpNewbie 230-Sep-12 12:20 
AnswerRe: Updating a Label in 2 forms simultaneously PinmemberEmdad_54821-Oct-12 1:44 
QuestionC# check for null in linq [modified] Pinmemberdcof29-Sep-12 9:05 
AnswerRe: C# check for null in linq PinmvpRichard MacCutchan29-Sep-12 21:45 
QuestionEncrypt text file in C# Pinmembergibsray29-Sep-12 7:09 
AnswerRe: Encrypt text file in C# PinmemberSmart Arab29-Sep-12 7:20 
AnswerRe: Encrypt text file in C# PinmemberSandip.Nascar29-Sep-12 8:53 
QuestionPattern for creating class libraries Pinmembernitin_ion28-Sep-12 20:32 
AnswerRe: Pattern for creating class libraries Pinmembern.podbielski28-Sep-12 21:51 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 28 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid