« first day (1601 days earlier)      last day (3353 days later) » 

9:03 PM
Guys , Best Way i can implant a search based on 1 of my Column in a ListView is ?
 
@CharlieBrown I'm going sailing this weekend! :)
 
Nice!
 
I need a Search for the Upper ListView based by name , any idea on best method ? prntscr.com/6d5k6t
 
9:23 PM
hmm, should I include the AspNetUsers and such in my code-first model?
@ton.yeung ? @ReedCopsey ?
@RoelvanUden ?
 
@CharlieBrown 50F+ next wednesday... going sailing?
 
dont i wish
might sit outside and watch the snow melt with a beer or 4
@Pheonixblade9 yes. no.
 
@CharlieBrown WHICH IS IT YOU FOOL
:)
 
ive done both
 
so it's not a huge deal?
 
9:36 PM
wont matter either way
 
Should I suffix every class in my ViewModel with ViewModel?
 
hola hombres
 
hi
i have important question about WP8
 
I've got a list of 30 names, I want to add a code file to my project for each name. I'm lazy, how do I do this with code?
 
@KendallFrey thats pretty standard
 
9:46 PM
okey
 
Well, its just XML, so you could create the files and just modify the csproj file
or create all the files programmatically and batch-add with VS
 
yeah, parsing xml is too much for for a one-off
 
@CharlieBrown - Do you make any effort to simplify your @model using statements in your .cshtml views?
 
Yes, by doing namespace includes in the Views/Web.config
but i dont go crazy with it
 
@CharlieBrown - But then all of your viewmodels have to be placed in one area that every controller references?
 
9:49 PM
@KendallFrey yes, or namespace/type name collisions are bound to happen
 
@KendallFrey I generally do that by putting them in folders rather than in the class names
but I might be wrong
 
@TravisJ I nest mine in folders by controller name
 
if you're doing folder namespace organization, you should be okay. But you might run into a situation where you need to alias a using statement
 
@CharlieBrown Yeah, I'm naming them after my model because I can't think of a better name
 
Yeah, but if you have Address and you use it to fill a Address view model it gets funky
 
9:51 PM
@CharlieBrown - I wish there was a way for the view to simply infer the type without explicitly typing it all the time.
Maybe I am just finicky, but it annoys me having to be like project.AreaName.ViewModels.ModelName all the time
 
yeah, when i use areas, i put vms in a diff project b/c of that
 
@CharlieBrown - I have 5 areas =/ lol
 
in each area, just register the namespace in the area web.config
 
has evil idea
What if you used @model Tuple<string,object> and then reflected the type cast for the object from the string
 
reflection = "probably doing it wrong"
 
9:55 PM
or I suppose Tuple<Type,object>
 
you can just use dynamic
you just wont have intellisense
 
@BradleyDotNET Started watching my first WPF youtube tutorial =)
 
Anyone tried out RunAbove's VM instances? The $9/month seems like a good choice for hosting non-trivial sites.
 
hah, found an easter egg in LINQPad
if you paste using directives into your code, it offers to put them in the using directives in the query properties
 
you didn't know that?
 
10:02 PM
no, I've never had need to paste using directives into code
 
I use it all the time
 
!!xkcd ten thousand
 
should I have a DbContext for auth and a DbContext for data access, or just one?
I had two and I refactored so my main context is this:
public partial class MyContext : IdentityDbContext<ApplicationUser>
@CharlieBrown ?
 
2
imho anyway
 
10:06 PM
@Pheonixblade9 ... especially if your authentication might live on another box soon.
 
mind if I ask why? just cleanliness?
 
probably habit at this point. im sure i could make up a good technical reason
 
writing code to write code, fuck yeah
 
I usually separate the 2 databases physically as well, so thats my use case
if you were shoving them in the same box, prob one would be just fine
 
hmmmm
so should I have my aspNetUser tables and such in a different Db entirely?
idk about that, I have user-based role stuff I need (essentially, is this user an admin?)
 
10:10 PM
not neccessarily, i just do b/c multiple apps use the auth table, and its legacy
 
gotcha
 
if its a new app, prob easiest to shove it all in one
can always refactor later
 
@ErwinOkken Cool
any questions?
 
@Pheonixblade9 - I have one for auth and one for data
@Pheonixblade9 - The auth db is tiny so it can be accessed faster. It is hit all the time
 
@TravisJ how would I manage cross-db queries for admin checks then?
rather, how would I avoid them?
 
10:13 PM
What do you mean for admin checks?
You mean to ensure the user has the proper access? Sometimes you hit one db and then the next
 
there is a user-set setting to change whether someone is in a certain role
hmm
 
admin chicks
 
hit em
 
not using a JWT token?
 
In the double entendra fashion, not the physical violent version
 
10:14 PM
right now I have two contexts both targeting the same DB...
 
Oh, I have one context per db
I just have 2 dbs, one auth, one data
 
it builds, it's 5:15
cya work
 
@BradleyDotNET Well not about WPF yet. But, windows.github.com that app, Is that created in WPF also? It's so fancy :D
 
6 hours, 12 views, I love SO
 
@KendallFrey views of what question?
 
10:18 PM
can I have the AspNetUsers and Roles, etc. tables in the same DB as my code-first DB and avoid migrations killing those tables?
 
@ErwinOkken I don't know for sure. But if I had to guess, yes it was.
 
@Pheonixblade9 yes, that works fine
 
I'm just gonna create a 2nd auth DB
 
migrations will only touch what you change
i could use a pint right now
 
10:21 PM
@KendallFrey WPF questions tend to have similar problems, though not quite to that degree
Its probably looks hard enough you just scared off the masses :(
 
It's not hard, just a niche question
like most of mine
 
yeah, most experienced SO users are good enough at searching we don't need to ask the super-general ones.
So we're stuck with low-view niche ones :(
 
... or ask close-bait claiming that it's not a recommendation question.....
 
@ErwinOkken Yes, it's WPF ;)
 
@ReedCopsey It's so damn fancy :O
 
10:28 PM
Looking awesome is actually not the primary benefit of WPF
Awesome design is the best part
UI styling is just frosting on the cake :)
 
base64 images are so pimp
 
True that, but I just love the looks of that app :D
 
Ok, VS13 is driving me crazy. Cant seem to ignore the packages folder on checkin
 
@ErwinOkken MUI and Mahapps both make it fairly easy to get that look for your app
 
@ReedCopsey Thank you :)
 
10:42 PM
@CharlieBrown .gitignore not behaving?
 
yeah, its dumb lkike
 
11:08 PM
In Web-Forms, what is the premise of doing such syntax?

function updateDiscounts<%=OrderSummaryNum%>(cost) {

}
Is that just to place the name or value in the Function?
 
The premise is someone didn't know what they were doing.
could've easily been function updateDiscounts(cost) { var orderSummaryNum = <%=OrderSummaryNum%>
If they needed summary index specific code they should write a client side switch statement to handle it.
 
What is the point of that?
I've never encountered such syntax
 
11:32 PM
@Greg Is that data binding syntax? Does it work without the "#"? Also, not sure why it would be placed in the function name.
Never seen anything like that either.
 
@JasonAusborn I don't think it is data binding, on code behind it is simply a string.
 
<%="OrderSummaryNum" %> I believe evaluates to <% Response.Write("OrderSummaryNum"); %>
 
Yeah, which is constantly either a String.Empty or a 1
 
11:47 PM
so I guess you end up with either updateDiscounts1 or updateDiscounts for the function name?
Dunno it is weird to me because I have never messed with setting function names to be dynamically named.
 
Yeah, weird.
 

« first day (1601 days earlier)      last day (3353 days later) »