« first day (1369 days earlier)      last day (3805 days later) » 

@Breems - Separating models is important. I have domain models in my data access layer which are purely for use with a repository. I have view models which are part of the presentation layer that have subsets of the domain models. I have transport models inside of my service layer for special subqueries.
@TravisJ So a Service should not actually retrieve the data, but just format it and feed it back to the VM?
@RodrigoSilva - A service should request the data, but not actually fire up the db connection and do the query. It can format the data how it pleases from the data access layer and then return that to the presentation layer. That layer can then work with the formatted data and choose another subset to send out to the view.
@TravisJ Hm I see. What type of data should DAL return? In the case of files it might return a bunch of FileInfos, but what if it's custom data? Should I return the Model class representation of it?
Isn't that mixing things?
21:11
Hey guys, I had a question about working with bitmap files that have been loaded in as resources if anyone has experience with it. Specifically, when looking at one at runtime, is there a way to see the resources's name? I'm iterating over some cells which contain bitmaps (e.g. checkBox, errorCross, questionMark).
I'd like to be able to iterate through those cells and check whether the bitmap is the checkBox bitmap, the errorCross bitmap, etc. But all it seems to be able to tell me is that the cell contains a bitmap, not any specific type.
@RodrigoSilva - Usually the DAL will provide hooks so that the data can be manipulated in the DAL and returned in the format that the service requested through an injected projection.
Projection being a fancy word for .Select(expression).
@TravisJ I see, so the DAL does the actual conversion, the Sercvice doesn't care what the original format was, it has to be what's expected.
Is that correct?
Yes, the DAL will technically be doing the conversion, but the details of the conversion will come from the service.
The DAL should have all the data and know all about it. The service should know nothing about all the data and only know about what it needs to move on.
You mean, passing the expected type to the DAL?
Using generics?
uhm =/
let me give you a demo
Yes, it would use generics though
21:17
@TravisJ any chance we could chat on gchat this evening or next? I was looking to set up this WebAPI stuff and had a couple roadblocks
unfortunately it's at home so I can't look at it now (personal projecT)
@TravisJ since everyone else is spamming you about MVC
if you feel like --wasting-- dedicating 30 minutes or so of your evening :P
@TravisJ If you wouldn't mind :P I often understand things much better just by reading code
@Pheonixblade9 - google chat?
21:18
yeah.
my email is on my profile.
It took me a while to notice that right next to email it says (Private)
next to mine?
I don't have any of that set up. Can you just call me or can we make a separate room here? I have a mic in a box somewhere at home.
@Pheonixblade9 - Next to everyones.
yeah, a separate room would work fine :)
I thought my email was public too, but I guess its not
If the material is sensitive you can email it to me
[email protected] is my email
@RodrigoSilva - Still making the demo
21:21
you're email travis!
not sensitive :) personal project
will you be around 9pm or 10pm?
@TravisJ Yeah, no worries :P I accidently closed the chat
@Austinh100 - :)
@Pheonixblade9 - I have been kind of maybe staying up til like 2am lately
@Pheonixblade9 - Just ping me here and I will periodically check at home
cool. thanks man :)
herro
21:36
Does anyone here have satellite internet?
I'm super nervous about having to get it...
Hopefully you don't game, pings will be unreal
@JLott Do you mean those tiny things you plug into a USB port?
Those which use 4g are a bit unstable here
You might be running at fullspeed and an hour later at 10%
reasons not to move to the middle of nowhere
@RodrigoSilva It comes from a dish....
Not actually in the middle of nowhere, just a smaller town :P
21:40
@NETscape Does not outweigh the reasons to move to the middle of nowhere
move in between
I think I am going to go with Excede... they have their reviews are not as bad....
@JLott min pings of 400ish from physics you will see 600-800 normally though. if you don't game though it should be fine
@RodrigoSilva - .net fiddle is hating using .Select on a List for some reason =/ should be ready soon
@TravisJ No problem if you can't do it now :P
21:43
lol apparently I had to cast a list as its own type since I cheated on part of the internal type lookup
DbSet exposes table names by name and type so DbSet<MyTable> == DbSet.MyTable
@Austinh100 I hate how expensive it is.... Freaking crazy..
@RodrigoSilva - Anyway, here it is: dotnetfiddle.net/Q8fLE0
@JLott expensive, and not very good :(
Thank you @TravisJ :)
21:47
:)
I see it clearly now!
Cool :D
@TravisJ Why the type on .ToList<Place>();? ToList() works fine there
@ReedCopsey - I forgot to remove that. I got a strange error from the line return Db.Places.Cast<T>().Select(select); if the .Cast<T> wasn't used. It was arguing that Place and T were not the same. Anyway, I tried explicitly setting types in a few places and that was one of them.
22:00
1,3,5,7,9
^.^
0,6,12,18,24,30,36,42,48,54,60,66,72,78,84,90,96,102,108,114,120,126,132,138,144‌​,150,156,162,168,174,180,186,192,198,204,210,216,222,228,234,
sixes...
Anyone know of a really, really customization control in web-forms to display data out of a database, but it isn't a GridView. Is a Repeater really worth it?
@Greg - Custom placards imo.
@TravisJ ?
What control is that?
@Greg - "display data about of a database" should have a customized placard per record imo. It isn't a control, it is hand crafted like a fine beer.
22:05
@TravisJ Where can I find such an example?
@Greg - dotnetfiddle.net/GLK6aQ Very simple example of data being displayed in styled placards as opposed to being displayed as tabular.
@TravisJ I'll take a look, and this will allow for clean navigation to other areas and etc.
22:41
@TravisJ If I pulled data out of a model like that, can I specify another page or Javascript data to load.
Can you rephrase that?
You have data in your fiddle, what if when a property is gathered it can contain a link to another location?
22:57
@TravisJ Answered my own question...
23:16
I got to reference my canonical answer :D yay
23:54
anyone there?
( ͡° ͜ʖ ͡°)‎
@NokImchen Nope

« first day (1369 days earlier)      last day (3805 days later) »