« first day (2026 days earlier)      last day (2905 days later) » 

11:01 PM
@RyanTernier what are you doing, lets go get some beer
 
So, I'm playing around with winforms (Sad to say it's my first non-console based interactable thing I've programmed). Am I correct in understanding that if I don't keep long running processes in their own threads, I'm locking up the app UI?
 
I'm so drunk right now
 
yep
 
white girl wasted!
 
@Sippy if you can use apostrophes you're not drunk enough
 
11:04 PM
Doesn't stop me going 17-2 on overwatch
 
you're a girl?
 
Man typing is so second nature to me that I can probably still do 120wpm whilst hammered
no.
Just white girl wasted
 
user47589
i dont get it.
 
user47589
who is the wasted white girl?
 
I wonder if urban has an opinion
!!urban white girl wasted
 
11:05 PM
@Sippy White Girl Wasted To be extremely drunk, high or a mixture of both. The term is derived from the extreme inebriation most commonly experienced by white females between age 17 to 27.
 
user47589
oic
 
Is overwatch good?
 
i want to play it so badly T_T
beta is this month and releases on the 26th i think
 
I don't even know what it is.
other than that it is a new blizzard game
 
it's an fps by blizzard, and it looks good
 
11:10 PM
i just downloaded overwatch
i haven't fired it up yet
maybe i should
 
youtube gameplay videos
 
!!youtube overwatch gameplay
 
@Jakotheshadows Something went on fire; status 403
 
omg why do i need a college degree for vs source control ..... is there an easy way to set it up?
i just want to work on the same project on multiple devices without having to move files around
 
don't use VS
 
11:12 PM
git & github
 
use github or bitbucket or something much easier
(and nicer)
 
thought i smelled leather and musk
 
@ReedCopsey okay
 
github's my favorite if it's public (or you want to pay for the account)
 
@ReedCopsey i prefer a private, i actually dont want people to see my code
 
user47589
11:14 PM
bitbucket has free private repositories.
 
yep
and sourcetree is pretty easy to use with bitbucket repos
if you want an all-gui experience
 
is visualvsn okay?
 
re: who started this room. the creator of chat balpha
Him and Spolsky were actually in here talking when it first started (all in the transcript)
This room is not your average room, we are just stewards here.
 
user47589
this is holy ground then. no more cursing!
 
lol says amy
<3
 
11:18 PM
found my new comp chair
 
Oct 15 '10 at 7:05, by balpha
ArgumentNullException
 
@TravisJ who's balpha?
 
Oct 15 '10 at 7:24, by Marc Gravell
so is this room IDisposable?
 
works well when the computer doesn't do what it's told
 
@AdanRamirez - The SE employee who coded chat
 
user47589
11:18 PM
wow
 
@TravisJ cool
 
Oct 15 '10 at 23:50, by Joel Spolsky
don't mind me
Joel is the CEO of SE
 
neat
 
is it possible in EF code first to use an existing database, add new entities, and have those entities be related to old entities? Or am I gonna have to sql it up and do database first / vanilla ado.net
 
Anyway, lot of history in this room.
 
user47589
11:21 PM
I still have Joel on Software on my bookshelf.
 
@Amy - I am waiting for a signed copy in teh mails :)
 
bedtime
goodnight csharpers
 
user47589
@TravisJ nice!
 
@Jakotheshadows you can map your database columns to entities however you like
 
@Jakotheshadows - Yes, but it is painful. You need to set up a migration script in order to do that type of modification from code first.
 
11:22 PM
so yes, but don't
gotcha
 
@Jakotheshadows - If you manually construct the database structure and in code classes, it is very easy (that is the route I take). It isn't common though, most people don't like hand coding that stuff.
 
user47589
@Jakotheshadows what i did in the past was create a code-first database using migrations, and work your way to an identical schema with the original database. then copy the migrations table over, and you're done.
 
Yeah, that is the route I'm going to take based on your answer
oh wait, both manually make the tables AND the in code classes?
 
My usual process for db modification is, step 1: change the db structure, step 2: change the DbSet<T> definition for T, step 3: deploy
 
wait, I'm not sure
what you mean by that
 
11:24 PM
@Jakotheshadows Thanks for help yesterday :-) finally working
 
Hey np GJ
 
Very simple actually... :)
 
user47589
code-first migrations means you write a c# entity class, add it to the dbcontext, and then migrate the "model changes" into the database.
 
migrations scare me
 
Well, I don't have a full code-first definition for the existing database
it is from another vendor, and I'm hacking their stuffs (with their blessing)
 
user47589
11:25 PM
its easy to generate the properties for each class that matches each table.
 
especially when deploying to live environments, i make sure thats off
 
However, is it good programming to actually have an remove button that remove + update at the same time?
 
sql: insert table some fields someid, quantity, date
c#:
public class Some
{
    [Key]
    public int SomeId { get; set; }
    public double Quantity { get; set; }
    public DateTime Date { get; set; }
}
 
does everyone here use source control?
 
but, thats me
 
11:25 PM
@Jakotheshadows - Basically like that ^^
 
i'm a huge fan of fluent api
 
@SteveG - I don't have a single line of fluent, and the only annotation I use is [Key]. I really like using convention
 
i like it as much as wadry likes odata
 
user47589
i like using attributes.
 
yeah, but then your entity project needs reference to ef
 
11:27 PM
@TravisJ what if I don't have a code first definition for the existing database? can I start with database first and proceed with code-first to add entities?
 
i dont like unnecessary references
 
@Jakotheshadows - erm, not sure. how many tables could there be? :P
 
but, thats just my preference
 
guess so..
 
There are a lot of tables
 
11:28 PM
@SteveG - They all get thrown in the same .dll eventually anyway
 
this is a very "enterprisey" application I'm extending
 
@SteveG - All those usings just get merged into a global reference during compilation
@Jakotheshadows - 25 tables? 50?
 
i didn't know that, but thats not why i don't like it, i don't like it because its just one more thing to maintain
maybe i'm lazy, who knows
 
using all teh things!
 
it just seems cleaner
to me
bloop
 
11:30 PM
@TravisJ SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE table_type = 'base table' yields : 167
 
Oh, so that is no problem, just manually type them all out
 
granted, I don't need most of those
 
lol j/k :P you are going to have to find some way to do that automatically
 
I only need a small handful of them though tbh
 
167 tables though? =/
 
11:31 PM
Yes.
 
thats huge, you need all of those?
 
Does this database run support for an airline company?
 
Not even close.
 
whew
 
11:31 PM
its actually an ERP application
 
I mean, I really hope that the company is like massive
a dynamic one? ;)
dynamic enterprise resource planning
 
whats the difference?
 
one spells derp
 
lmao
i didn't catch that
lmml
 
ERP software is almost guaranteed to be over engineered from my experience
MSFT dynamics is one of the most convoluted products I have looked at
 
11:33 PM
Yeah, I think they got tired of overengineering it at some point
because they made it extensible
they're just like "ok we're done, if they want more they'll write it themselves"
I wish more software products were like that
so if I only need a handful of the tables, I can manually code those out and map them to existing tables in the database and make new entities along side them without nuking anything already existing in the table?
 
erm
So.... EF uses reflection to parse your class definition to write SQL with. EF does not care about your class definition nor the table definition. The issue is with the SQL executing on the db server. If the fields exist, then there will be no problems running the SQL, even if you left out fields or tables. In other words, you can create a class that only has two rows, even if a table has 20 rows, and use only that to query with if you were so inclined.
 
and it will fill in the entities that are missing?
or rather, the new entities
/ tables
sorry I'm misusing the word entity
I meant tables
 
@Jakotheshadows - No it wont fill anything in. You can only modify/query the rows defined.
I hate how HighStock always crashes browser tabs
ugh
 
@TravisJ I think I'm screwing my words up a lot here, and I apologize. What I mean to ask is if code first can create new tables on an existing database for entity classes that don't already have tables associated with them, as well as map the entities that do have associated tables to those tables. I'm sure I'll have to do something to make the "map to existing" thing work, but before I dive into that google-hole It'd be cool to at least know that my fantasy is possible
 
ooh, careful!
It can do that, but there is the possibility that it will leave your database with only the new tables defined.
 
11:47 PM
That is EXACTLY what I was scared of
 
It would want to migrate the entire database, and then recreate the entire database with your new tables defined.
 
ugh source control for beginners!!!
 
If it doesn't know of the other tables, there is a possibility that it would wipe them out.
 
you guys think il set this up today or in days?
 
I think I'm gonna take the safer route and just make the tables in t-sql, and use ADO.NET to connect and serialize the data into classes in my very own data layer then
 
11:49 PM
@Jakotheshadows - sandbox, sandbox, sandbox :D
 
I guess thats possible too
maybe I'll gather up my green plastic soldiers and head down to it
 
I just meant that your described approach sounded more separated and safe.
Considering there is a database of 167 tables, some extra caution may help
 
Yeah
slow and steady
gets the job done
 

« first day (2026 days earlier)      last day (2905 days later) »