Click here to Skip to main content
15,904,935 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to get the HttpResponseHeader in c#,c++ ? Pin
Member 1457084312-Sep-19 3:10
Member 1457084312-Sep-19 3:10 
GeneralRe: How to get the HttpResponseHeader in c#,c++ ? Pin
Maciej Los12-Sep-19 3:30
mveMaciej Los12-Sep-19 3:30 
QuestionRe: How to get the HttpResponseHeader in c#,c++ ? Pin
ZurdoDev11-Sep-19 1:09
professionalZurdoDev11-Sep-19 1:09 
AnswerRe: How to get the HttpResponseHeader in c#,c++ ? Pin
Member 1457084312-Sep-19 3:03
Member 1457084312-Sep-19 3:03 
AnswerRe: How to get the HttpResponseHeader in c#,c++ ? Pin
ZurdoDev12-Sep-19 3:36
professionalZurdoDev12-Sep-19 3:36 
AnswerRe: How to get the HttpResponseHeader in c#,c++ ? Pin
Luc Pattyn11-Sep-19 3:42
sitebuilderLuc Pattyn11-Sep-19 3:42 
QuestionWhat is the best way to create your Database (tables..etc) using C# ? Pin
Abdalla Ben Omran10-Sep-19 4:18
Abdalla Ben Omran10-Sep-19 4:18 
AnswerRe: What is the best way to create your Database (tables..etc) using C# ? Pin
CHill6010-Sep-19 4:31
mveCHill6010-Sep-19 4:31 
GeneralRe: What is the best way to create your Database (tables..etc) using C# ? Pin
Abdalla Ben Omran10-Sep-19 4:47
Abdalla Ben Omran10-Sep-19 4:47 
PraiseRe: What is the best way to create your Database (tables..etc) using C# ? Pin
Maciej Los10-Sep-19 20:44
mveMaciej Los10-Sep-19 20:44 
AnswerRe: What is the best way to create your Database (tables..etc) using C# ? Pin
OriginalGriff10-Sep-19 4:51
mveOriginalGriff10-Sep-19 4:51 
GeneralRe: What is the best way to create your Database (tables..etc) using C# ? Pin
Abdalla Ben Omran10-Sep-19 5:03
Abdalla Ben Omran10-Sep-19 5:03 
SuggestionRe: What is the best way to create your Database (tables..etc) using C# ? Pin
Richard Deeming10-Sep-19 4:53
mveRichard Deeming10-Sep-19 4:53 
GeneralRe: What is the best way to create your Database (tables..etc) using C# ? Pin
Abdalla Ben Omran10-Sep-19 4:59
Abdalla Ben Omran10-Sep-19 4:59 
GeneralRe: What is the best way to create your Database (tables..etc) using C# ? Pin
Abdalla Ben Omran10-Sep-19 5:19
Abdalla Ben Omran10-Sep-19 5:19 
AnswerRe: What is the best way to create your Database (tables..etc) using C# ? Pin
Gerry Schmitz10-Sep-19 6:02
mveGerry Schmitz10-Sep-19 6:02 
AnswerRe: What is the best way to create your Database (tables..etc) using C# ? Pin
MadMyche10-Sep-19 8:36
professionalMadMyche10-Sep-19 8:36 
QuestionRe: What is the best way to create your Database (tables..etc) using C# ? Pin
Maciej Los10-Sep-19 20:46
mveMaciej Los10-Sep-19 20:46 
AnswerRe: What is the best way to create your Database (tables..etc) using C# ? Pin
Abdalla Ben Omran10-Sep-19 21:57
Abdalla Ben Omran10-Sep-19 21:57 
GeneralRe: What is the best way to create your Database (tables..etc) using C# ? Pin
Maciej Los10-Sep-19 22:00
mveMaciej Los10-Sep-19 22:00 
GeneralRe: What is the best way to create your Database (tables..etc) using C# ? Pin
Abdalla Ben Omran10-Sep-19 22:16
Abdalla Ben Omran10-Sep-19 22:16 
AnswerRe: What is the best way to create your Database (tables..etc) using C# ? Pin
MadMyche11-Sep-19 1:43
professionalMadMyche11-Sep-19 1:43 
No to the VBA, no Entity Framework, no LINQtoSQL; I am an ADO purist.

But I'll try to explain the process if it helps. After typing this it does seems really wordy and long but after many years of doing it this way it is only a matter of minutes.
  1. Create class properties in C#
  2. Copy the properties and paste in Notepad
  3. Use find/replace to replace spaces with tabs
  4. Copy the contents and paste into Excel
  5. Add column for natural index (1,2,3)
  6. Sort by Net Data Type
  7. Add column for SQL Data Type alongside NET data type, and populate
  8. Rerrange columns around to match format of CREATE TABLE syntax
  9. Copy and paste the desired columns into SSMS new query window
The process for SQL design to a class is similar.

I also reuse/tweak the Excel content to create instances (overloaded constructs) from IDataReaders or DataRows.
Director of Transmogrification Services
Shinobi of Query Language
Master of Yoda Conditional

PraiseRe: What is the best way to create your Database (tables..etc) using C# ? Pin
Maciej Los11-Sep-19 1:59
mveMaciej Los11-Sep-19 1:59 
GeneralRe: What is the best way to create your Database (tables..etc) using C# ? Pin
MadMyche11-Sep-19 3:50
professionalMadMyche11-Sep-19 3:50 
Generallaziness is a reason for progress Pin
Maciej Los11-Sep-19 4:03
mveMaciej Los11-Sep-19 4:03 

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.