Click here to Skip to main content
15,898,615 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Style and form in generated code Pin
Jörgen Andersson26-Nov-19 5:58
professionalJörgen Andersson26-Nov-19 5:58 
GeneralRe: Style and form in generated code Pin
dywanex19226-Nov-19 8:07
dywanex19226-Nov-19 8:07 
GeneralRe: Style and form in generated code Pin
  Forogar  26-Nov-19 5:04
professional  Forogar  26-Nov-19 5:04 
GeneralRe: Style and form in generated code Pin
Dan Neely26-Nov-19 5:17
Dan Neely26-Nov-19 5:17 
GeneralRe: Style and form in generated code Pin
honey the codewitch26-Nov-19 5:20
mvahoney the codewitch26-Nov-19 5:20 
GeneralRe: Style and form in generated code Pin
Kornfeld Eliyahu Peter26-Nov-19 5:32
professionalKornfeld Eliyahu Peter26-Nov-19 5:32 
GeneralRe: Style and form in generated code Pin
honey the codewitch26-Nov-19 5:34
mvahoney the codewitch26-Nov-19 5:34 
GeneralRe: Style and form in generated code Pin
#realJSOP26-Nov-19 7:03
professional#realJSOP26-Nov-19 7:03 
I have an app that generates models and (optionally) viewmodels from stored procs in the seleted database.

In both entity types, I give the user the opportunity to specify namespaces, and base classes (that the generator does not create).

All generated model and viewmodel entities are generated as public partial, and all properties are virtual, with a comment that reminds the coder that the model/viewmodel in question is generated, and that any changes to the generated file(s) will be lost if they regenerate the entity, and further, and changes should be made to either a partial extension file, or inside an deriving class.

For the record, my app does it better than the ado.net project template, and is SIGNIFICANTLY less buggy or finicky. Beyond that, once you click the generate button, it creates all of the entities in less than 5 seconds in a database with over 200 stored procs.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

GeneralRe: Style and form in generated code Pin
honey the codewitch26-Nov-19 7:12
mvahoney the codewitch26-Nov-19 7:12 
GeneralRe: Style and form in generated code Pin
Sander Rossel26-Nov-19 9:39
professionalSander Rossel26-Nov-19 9:39 
GeneralRe: Style and form in generated code Pin
honey the codewitch26-Nov-19 9:40
mvahoney the codewitch26-Nov-19 9:40 
GeneralRe: Style and form in generated code Pin
honey the codewitch26-Nov-19 9:42
mvahoney the codewitch26-Nov-19 9:42 
GeneralRe: Style and form in generated code Pin
Sander Rossel26-Nov-19 10:20
professionalSander Rossel26-Nov-19 10:20 
GeneralRe: Style and form in generated code Pin
honey the codewitch26-Nov-19 10:21
mvahoney the codewitch26-Nov-19 10:21 
GeneralRe: Style and form in generated code Pin
Mycroft Holmes26-Nov-19 11:52
professionalMycroft Holmes26-Nov-19 11:52 
GeneralRe: Style and form in generated code Pin
Marc Clifton26-Nov-19 12:14
mvaMarc Clifton26-Nov-19 12:14 
GeneralRe: Style and form in generated code Pin
Stuart Dootson26-Nov-19 23:49
professionalStuart Dootson26-Nov-19 23:49 
GeneralRe: Style and form in generated code Pin
honey the codewitch26-Nov-19 23:52
mvahoney the codewitch26-Nov-19 23:52 
GeneralRe: Style and form in generated code Pin
Stuart Dootson27-Nov-19 0:02
professionalStuart Dootson27-Nov-19 0:02 
GeneralRe: Style and form in generated code Pin
honey the codewitch27-Nov-19 0:06
mvahoney the codewitch27-Nov-19 0:06 
GeneralRe: Style and form in generated code Pin
kalberts27-Nov-19 1:56
kalberts27-Nov-19 1:56 
GeneralRe: Style and form in generated code Pin
honey the codewitch27-Nov-19 2:06
mvahoney the codewitch27-Nov-19 2:06 
GeneralRe: Style and form in generated code Pin
kalberts27-Nov-19 2:48
kalberts27-Nov-19 2:48 
GeneralRe: Style and form in generated code Pin
honey the codewitch27-Nov-19 2:51
mvahoney the codewitch27-Nov-19 2:51 
GeneralRe: Style and form in generated code Pin
Gary Wheeler27-Nov-19 1:58
Gary Wheeler27-Nov-19 1:58 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   422 votes