« first day (2166 days earlier)      last day (3008 days later) » 

12:00
But if I'm right, the wpf is like html and css. Html is the wpf. Xaml is the css
War
War
other way round
html + css = web
wpf + xaml = desktop
@War Just look at Vivaldi. They use nodejs and react.
Right, ookay. But first: Shadows :P
War
War
@scheien neat ... does that use html too or is it raw js only?
No idea actually. Haven't really looked that much into it
War
War
12:03
I keep hearing about node ... sort of gripes me ... like js has been around for so long and someone pipes up saying "ok now lets run it on our servers" and all of a sudden js / node is the best thing since the wheel
how ... js is still a mess in the browser, the only reason people don't totally hate it is because of the hundreds of libs that overcome the mess for them
and now they want to trust that same language on their servers ... :facepalm:
12:17
Hello everyone, i would appreciate advice if someone is familiar with the problem.
It is about WinForms:

dataGridView.Rows.Clear();
// At this point CurrentCell == null
int rowIndex = dataGridView.Rows.Add();
// Here it is automatically changed to (0, 0)
DataGridViewRow row = dataGridView.Rows[rowIndex];

When added one more row, if i set value to a cell 0 in row 1, value of the CurrentCell is also changed to that one - so i get duplicated data.
War
War
?
When next row is added, and Value assigned to cell 0 in that row, same value is changed in (0,0).

This has just started happening on one place (and i'm using DGV control for years now).

PS. Sorry, i am still not used to this chat, so accidentally press Enter :).
Thanks for help
War
War
I'm not sure i understand the problem from the description
I also do not understand the problem
War
War
dataGridView.Rows.Clear();
// At this point CurrentCell == null
int rowIndex = dataGridView.Rows.Add();
// Here it is automatically changed to (0, 0)
DataGridViewRow row = dataGridView.Rows[rowIndex];
^ results in 1 row being in the grid
if you then edit anything on the variable "row" you are editing that 1 row
12:24
@miki there is no duplicated data in that situation.
wait a min, i will write something more clear :)
War
War
dataGridView.Rows.Clear();
int rowIndex = dataGridView.Rows.Add();
var row1 = dataGridView.Rows[rowIndex];
rowIndex = dataGridView.Rows.Add();
var row2 = dataGridView.Rows[rowIndex];
seems pretty simple to me? ... or am i missing something?
// I want to populate DGV with fresh data.
dataGridView.Rows.Clear();
for (int i = 0; i < 3; i++)
{
int rowIndex = dataGridView.Rows.Add();
DataGridViewRow row = dataGridView.Rows[rowIndex];
row.Cells[0].Value = i.ToString();
}
// I would expect result
// [0,0] = "0"
// [0,1] = "1"
// [0,2] = "2"

// But i get
// [0,0] = "2"
// [0,1] = "1"
// [0,2] = "2"
// By iterations
// [0,0] = "0"
// [0,1] = null
// [0,2] = null

// [0,0] = "1"
// [0,1] = "1"
// [0,2] = null

// [0,0] = "2"
// [0,1] = "1"
// [0,2] = "2"
@miki because you keep putting values into row.Cells[0]
So it seems that when i assign value to a cell, same value is set to CurrentCell, which is in this case [0, 0]... pretty confusing...
Yes, but in every iteration i get newly added row
12:31
@miki oh, my mistake
war can I bug you again
int rowIndex = dataGridView.Rows.Add();
// With this hack it works well.
dataGridView.CurrentCell = null;
DataGridViewRow row = dataGridView.Rows[rowIndex];
row.Cells[0].Value = i.ToString();
at the now comes the real question part. I don't know the answer. But both of them should have some kind of visitor pattern to not ask for the is or as.
till UpdateLink there is no IsCollection or IsLink in the code. <HierarchicalDataTemplate DataType="{x:Type local:Link}" kind of visits if it is a link or what.
@miki I just tested this code and it works perfectly
            dataGridView.Columns.Add("Col1","Col1");

            dataGridView.Rows.Clear();
            for (int i = 0; i < 3; i++)
            {
                int rowIndex = dataGridView.Rows.Add();
                DataGridViewRow row = dataGridView.Rows[rowIndex];
                row.Cells[0].Value = i.ToString();
            }
War
War
12:44
@miki i in your case is the row index so in the first column you should get I
the way you explain it is that you expect as you increment i to get the next column not the next row
http://s13.postimg.org/i1gk0dqjr/dgv_bug.jpg

I suppose i have somewhere something else set/unset, so after provided line of code is executed, CurrentCell is also updated (in this case it is [0,0])

And i am using at least 10 DGV in this project, but only this one makes me this strange problem...
1
Q: Play file from network drive with # in path using MediaElement

Johan LarssonRepro code: <Window x:Class="MediaBox.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:MediaBox" Title="MainWindow"> <Grid> <Grid.RowDefinitions

More descriptive image:

http://s10.postimg.org/6yp74523t/dgv_bug.jpg
@War why do the app requires this line of code?

"runtimes": {
"win10-x64": {}
}
War
War
its the runtime versions supported by the project
12:53
Thank you very much. You really put a lot of effort in it. That's awesome.
That's pretty much the same as my code looks like now.
(A side node for you, as you mentioned a question in your comments: "now comes the real question. What we expect of an IElement. Should it have DoUpdate, which propagates further ReferencedElement.DoUpdate();" Yes, that's the intention behind. The collection would also propagate this and call DoUpdate() on all children as well"
However I have much more elements, for example a collection that only calls DoSomeStuffWithChild(IElement child) if the child fulfills a
(see full text)
War
War
@EsonRoxas C# sits on top of the CLR, which has many versions, versions that support many platforms
it's like declaring where you want the code to be allowed to run (windows, linux, mac, on a x64 chip, x86 chip, ect ect)
@War so I would have to declare the RID when I want to run the coding part, I need to specify the platform I'm using?
@Michael in this example i tried to set index of row in first cell of the row... for loop is actually redundant in this case.
I used same code on several places, and everywhere it works but here.

I think it is some flag or field that i changed somewhere, so i get this kind of behaviour.
Anyway, thanks for help, if i find solution i will post it here :)
War
War
@EsonRoxas it's a set of compiler options ... when you compile the code you compile it using the C# compiler (roslyn) that produces msil, with this information it allows you to refer to subsets of functionality available in different versions of the CLR
when the CLR loads your code it looks at if your code is supported by that version of itself
@War so by that, I don't have to define different RIDs when I want to open my project solution file on a different platform?
13:05
@Bechi I have updated the gist
for propagation You have to put the UpdateLink in the IElement
but this is bad, because the ICollectionInformation can also call it
also if there are such nodes that doesn't care about UpdateLink, they have to implement something
Okay, I have been working with Webforms for 2 years now and I thought I'd give MVC a try. What is the MVC version of a postback? I cannot get a checkbox to post back to filter a list.
@ntohl Yes, the updateLink method could be in the ILink, and should be triggered by an event, or the links are administrated through an external observer who calls the update. This is another story
@Bechi I was thinking about the event version. Yes. Observer is good call also.
Yeah, I have implemented this
The main point is that if I have a class that has methods and functions that belong together, these should (?) be in a dedicated interface
and the class should not directly contain the methods and properties, but a member of that dedicated interface type which performs the functionality
(Isn't that the composition part?)
War
War
13:20
@EsonRoxas no the json you referring to is declaring what platforms the project supports, that's it
My project involves Elements that have five (or more) of these distinct functionalities
And to losen the coupling and folow the S in SOLID, I tried to put all of them in seperate classes
@Bechi yes
Leaving inheritance aside, I come back to my initial problem: If I have a
IFancyElementWithFiveFunctionalities
{
IFunctionalityA fA {get;}
IFunctionalityB fB {get;}
IFunctionalityC fC {get;}
...
}

my calls to members get lengthy. I have myClass.fA.DoStuffA() instead of myClass.DoStuffA();
Does this violate the LoD?
Shameless question plug about factory pattern :)

http://codereview.stackexchange.com/questions/141922/object-publisher-factory
@Bechi Yes. IFancyElementWithFiveFunctionalities should have DoStuffA()
or DoStufffBA()
@Bechi I have updated gist with observer
if there are this much functionality, You should create a list of functionality, and foreach on them, with DoYourStuff(...)
different items would have different set of functionalities
13:40
@ntohl Thank you very much, you put so much time in my problem, I don't know how to thank you. Discussing this problem in this depth really helped me a lot (although I still not have "THE" answer)
The common member of all functionalities would be DoYourStuff(...) then
yes
IFunctionality holds only DoYourStuff. Foreach on a List<IFunctionality>, and call it
@ntohl Back again to your comment above: "Yes. IFancyElementWithFiveFunctionalities should have DoStuffA()" - But then, One could principally call IFancyElementWithFiveFunctionalities.DoStuffA() AND IFancyElementWithFiveFunctionalities.fA.DoStuffA()
And those two would not be the same
So it should be "IFancyElementWithFiveFunctionalities : IFunctionalityA, IFunctionalityB, IIFunctionalityC, ...
{
// NO member of type IFunctionalityA/B/C/... in interface
}"
instead?
This would ensure following LoD, and would still allow me to "internally" use private members of this interface type as the backing instances
yes
What is LoD?
law of demeter
13:51
@Html.CheckBox("showInactive", new { htmlAttributes = new {@checked = false}})
I need this to post back to server to filter my list.
If I already have an ActionResult for Index, how to I force that checkbox to post back to filter my list?
@Bechi how comes, that is not the same?
thanks for your help War............now passing about an array and consuming it
@ntohl Is this a catch question?
@Bechi this would be like IFancy....DoStuffA() would call a backed instance of classA (that is implementing IFuncA) 's DoStuffA()
@Bechi no. I have just lost You again >D
Yes, but it remains to the developer to ensure this
He could also develop a totally independent version version of DoStuffA() directly in the class implementing IFancyElementWithFiveFunctionalities
13:58
it's possible. I don't see a problem with that. Why would he develop another implementation, if he/she sees, there is a classA already in there?
This means, that Composition over inheritance now applies to the implementation of the IFancy... interface?
which does what he/she wants?
yes
(Because I can not see Composition within IFancy... anymore
So, you are making an interface that is trying not to violate the LoD?
@ntohl Well, I think that answers my problem. 7 Hours passed, and at least 5 lessons learned. I don't know how to thank you appropriately. Thank you very much.
14:01
in my actual gist the notify of elements has been moved to an external observer. you have to do the same with functionalities. In the new composed version Link contains an IObs instance which is composed into the Link.
@Nathvi Yes, that was the first hint I got from my original question 7 hours ago
I could Inherit Link from some Notifiable class, and do notification there, just I won't because it's not composition
What should I do to handle bad status code?
@Euridice01 inform user
I'm running a service on the backend though
So I don't need a UI to inform user
14:04
log the bad status code
Put that status code on a leash.
@scheien, your avatar is pretty cool
It's the dragon
Log the status code, and inform the user in a sane way. Do not show the exception details to the user.
14:05
and have a lot of Contract.Guard in Your code, so the problem won't create an invalid state
like when You are handling the situation as nothing happened, and continue with the process
right now, it throws an exception. So should I catch exception, log it and I want continue like nothing happened
I'm using response.EnsureSuccessStatusCode();
Is there a better way to check the status?
You can continue if you can recover / handle the exception.
Are you experiencing any trouble using EnsureSuccessStatusCode?
You could use IsSuccessStatusCode
if you don't want to handle a httpexception.
Trying to handle it now, will let you know after I run the service. Thanks!
26
A: Usage of EnsureSuccessStatusCode and handling of HttpRequestException it throws

Timothy ShieldsThe idiomatic usage of EnsureSuccessStatusCode is to concisely verify success of a request, when you don't want to handle failure cases in any specific way. This is especially useful when you want to quickly prototype a client. When you decide you want to handle failure cases in a specific way, ...

Ah yes, I was looking for something more like IsSuccessStatusCode
I'll test out both scenarios and see which one I prefer.
Thanks!
14:16
You're welcome.
Now i have a stupid sourcetree git question, how do I merge branches?
chip chop chip
git checkout <branch to merge to>
git merge <branch to absorb>
omg, it's @CharlieBrown,
haven't seen you here in a bit
Shameless question plug about factory design:

http://codereview.stackexchange.com/questions/141922/object-publisher-factory
14:31
@CharlieBrown lol... I should have just used command line. I did a merge in SourceTree but the branches still look separate. Not sure what's going on there haha
I literally just did a short class with my team on merge/branching about 10mins ago.
I can not emphasize enough the importance of not using UI tools for GIT (until you are really good at the commands)
Was that in the class? haha
oh yeah
This is a great learning tool
14:35
cool, thanks!
@CharlieBrown uh, I wish all programming websites has that type of documentation.
That should be a standard.
+1 for that git recommendation
14:50
Looks cool
Reminds me of the way I learned vim :)
http://vim-adventures.com/
One thing I have to learn is not to delete a whole branch because of git issues. Sometimes I do that to start over lol. This is getting ridiculous
@Nathvi I have showed that link 6-7 times at least
very impressive stuff
15:05
dumb moment why does the ActionResult have to use 'id' as the parameter
War
War
it doesnt
I did not think so - but the value is null when I change it to id I get the value
War
War
that's because of your routing setup
you must have this ...
routes.MapRoute(
    name: "Default",
    url: "{controller}/{action}/{id}",
    defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
War
War
just change id there to whatever you want
15:09
hi guys
War
War
but bear in mind it's a routing convention so that will change it for all routes
@Dartek12 sup
I've got simple problem
War
War
then use a simple fix to resolve it @Dartek12
@BrianJ hi
I'm looping through a list of object using razr syntax then trying to build a table. The problem is that my column names read form the database have spaces in them, eg "Contact Email Name"
How should I read back the column value in that case?
@foreach (var row in db.Query(selectServerString))
            {
                    <tr>
                        <td>@row.ID</td>
                        <td>@row.["Contact Email Name"]</td>

                    </tr>
            }



            //When I debug the name of the column it shows as "Contact Email Name"
The above didn't work as it's showing as an invalid col name also
15:13
in wpf I bind my control's IsEnabled to static bool property which returns collection.Count > 0 (where collection is an observable collection) and someone told me to raise NotifyPropertyChanged in setter of that collection in order to notify about this static bool new value but I dont know what was he meant to say 'in setter of that colleciton;
War
War
@BrianJ firstly it makes sense to build some separation in between things
you shouldn't be giving sql rows to your front end
I know ID works fine in the loop, but Contact Email Name doesn't as it has spaces
War
War
if you break the logic down correctly and use an ORM (something like EF or dapper) then you will have a collection you simply iterate over
when you have objects with properties it'll be a lot easier
@BrianJ what does your table look like? headers + first row of data example would be helpful
ok yeah so it should be
ID| Email
01| jdoe@gmail.com
the issue is the column name as it contains spaces
15:17
<td>@row.ID</td>
<td>@row.Email</td>
@War yeah I was copying the convention the main dev had already done
War
War
:facepalm:
what is row in this context?
row.GetType(); <-- what does that give you
Looks like Linq2Sql
yeah linq2sql
War
War
anon object?
15:19
If the column name is just "Email", I'm not seeing the problem. You can just do @row.Email
the problem is the column name coming from SQL Server is "Contact Email Name"
with the spaces
Is that b/c of your querystring?
(var row in db.Query(selectServerString)) <===
War
War
nvm ... i tried ... you MUST have a valid C# object in which case it probably is an object with properties named something like "Contact_Email_Name" so my thinking is that you should be able to do something like @row.Contact_Email_Name
Are you doing Email as "Contact Email Name" in selectServerString
The query string is just a Select *
I guess I could try alias each col in the query string?
15:21
Ok, but you said above the columnname is "Email"
War
War
@CharlieBrown no he didn't ... you did though lol
@CharlieBrown how can I revert, if I went somewhere wrong?
I'm doing a
var selectServerString = "SELECT * FROM ServerStatus";
@War Yeah, he did. See above
6 mins ago, by Brian J
ID| Email
01| jdoe@gmail.com
War
War
@BrianJ so just do ...
15:23
my bad
War
War
@foreach (var row in db.Query(selectServerString))
            {
                    @Html.DisplayFor(row);
            }
ID| Contact Email Name
01| jdoe@gmail.com
War
War
that's clearly not the data you have in the table
whats the data in the table ?
oh man
thanks @War made a new route and it catches that id
War
War
@juanvan of course it does (i'm awesome)
15:26
@ntohl, haha, thanks man :)
@Nathvi I mean. I have already, before You posted the link
War
War
@CharlieBrown yeh I was basing it off the UI code he had
Linq2Sql will do something with the name, if i recall.
Contact Email Name ==> Contact_Email_Name or ContactEmailName
@ntohl, gotcha
War
War
@CharlieBrown yup hense this ...
6 mins ago, by War
nvm ... i tried ... you MUST have a valid C# object in which case it probably is an object with properties named something like "Contact_Email_Name" so my thinking is that you should be able to do something like @row.Contact_Email_Name
15:28
right, good call
@Nathvi without VsVim I wouldn't use visual studio
but that plug in is just pure golden
@ntohl, I use VsVim too!!!
Looove it
me too
Every time I go to a coworker's computer, it makes me feel slow
@War ok I'll try that
15:31
@Nathvi :D I had a job interview through skype and collabedit.com.
it was BAD
where are my shortcuts...
@War I did try underscoring the col name, but got an invalid col name
@row.Contact_Email_Name
I think it's easier just to create a method in the DAL that will return a typed list
War
War
@BrianJ which i asked for the typeof(row)
another way to test it might be to serialise a row to json and see what that spits out
Razor can breakpoint now right?
War
War
@CharlieBrown yup
pick a line whack F9
has to be a line that contains some c# though
you can't put breakpoints in markup obviously
@ntohl, why was it bad?
15:36
@Nathvi I have programmed realtime in the collabedit.com editor, where there are no VIM shortcuts
and intellisense
War
War
ouch
@ntohl, that's painful
War
War
^ my thoughts
If I have an ActionLink, how do I hold onto the .text() attribute that I change with jQuery? When the page posts, it changes back to what it was before the jQuery event.
@War thanks for directing me to stuffs. Still learning this asp.net core thing.
War
War
15:51
@EsonRoxas no worries ... just keep reading :)
16:08
Is hackerrank.com a good way to measure programming skills or even topcoder
??
@War got some error when running update-database -context mycontext

System.ArgumentException: Keyword not supported: 'userid'. at System.Data.Common.DbConnectionOptions.ParseInternal(Dictionary`2 parsetable, String connectionString, Boolean buildChain, Dictionary`2 synonyms)

What causes this?
I seem to fail miserably at these things but can still put together a decent app
War
War
@EsonRoxas an invalid connection string
@june1992 I find that even StackOverflow rep isn't a great indicator of skill
@Squiggle you would be right.
War
War
16:10
I found due to the way VS behaves both your startup project and the project selected in the pmc projects dropdown need to contain the connection string
probably best / simplest to set both to the same project
@roscoe_casita Because I'm still only on 655 rep and I like to think I'm not a bad coder... ;)
War
War
oh and double check the conn string in the config file for that project
@Squiggle everyone in this room has used my code... yet look at my rep.
War
War
@roscoe_casita I haven't ;)
wait ... did you write something cool ?
@War do you buy groceries?
War
War
16:11
nope
@War i store the connection string on appsettings.json then use it on startup.cs using builder. I'm using ef core and mysql (since it has been supported by now).
War
War
that's why I have a girlfriend
well, then your girlfriend has used me ;)
War
War
@EsonRoxas should be ok
@roscoe_casita that sounds so dirty
what POS (Point Of Sale I mean of course) system did you write?
@War so meaning the connection string is not valid?
16:12
@War I think it was supposed to. I worked on barcode scanners, RS232/USB communications to them.
So when I mean skill I mean also skill as in qualifying for a job even if its junior or mid level . how can I know when I'm ready to apply for a job when I can't understand the problem set given to or get a correct algorithm goin . I mean I get close but nothing comes of my self esteem when I get on these sites and can't come through :[
War
War
@EsonRoxas possibly ... but the error implies that
if I did my job right, you'll never know I was there.
@june1992 can you pick a project and complete it?
War
War
@roscoe_casita I'm sure others have barcode solutions ... it's safe to say that just because someone has been in a shop doesn't mean they used your barcode scanning software
I recall doing something like that once for government stuff
reading interdepartmental codes for things moving around internally
16:14
@War on a long enough time line... they are the #1 barcode scanner manufacturer ...
War
War
@roscoe_casita fair play to ya :) ... so out of curiosity ... are you also a whizz with QR codes?
oh I know War, and its not like they 'used' my software and called to my API
War
War
I got a list of issues out the door at the moment relating to some QRCode related C#
@War a little bit, they are interesting
you can embed a virus in them, or at least upto 4k of code that could be executed
War
War
I'm thinking about building an API so I can just give it a qrimage and it give me the data back and the other way too
just so that all my internal code can go through one block of QRCode shit instead of having that crap all over the place
16:16
then you want TBarcodeStudio
War
War
the issue I have at the moment is due to how our clients scan them in
I think they must be either too small or getting distorted in some way
keyboard input?
what api / scanner?
@War am I getting this right?

var builder = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
.AddEnvironmentVariables();
var Configuration = builder.Build();
var connectionString = Configuration.GetConnectionString("DefaultConnection");

services.AddDbContext<BaseOnlineHotelReservationContext>(options => options.UseSqlServer(connectionString));
ooooo aspnet core?
War
War
we send them legal docs which they print sign and rescan then they send us a pdf
@EsonRoxas looks pretty good
I think UseSqlServer refers to MsSQL though
could be wrong
also ... wow!! i don't build my db contexts like that but i like it :)
16:18
and there is a barcode on the legal doc?
War
War
looks like something I would dump in to a ninject module
@roscoe_casita yeh ... so when we get the pdf the code reads it, looks for the code and then links the doc to the right part of the system
trouble is the code reading is crap
yeah
finding the QR code is the problem
decoding it is easy
War
War
might just be that the original dev was a total noob
naw, its a hard problem
War
War
finding it is not the issue I have
16:20
because you always know where it is?
War
War
it's making sure it gets read right
@War will try this one, options => options.UseMySQL(connectionString)
What do you mean by that? I mean, was that wrong?
War
War
@roscoe_casita yeh basically its always on the bottom left of the first page I think
@EsonRoxas quite possibly ... is it helping ? ... that might be why it wasn't liking the conn string
yeah, if you can lift the image off the pdf, and pass it to a decoder library such a TBarcode or other commercial product
War
War
@roscoe_casita that's exactly what its doing :)
16:21
You should be able to pass the entire PDF to a QR reader library and it'll locate it
surely?
@War well, then it sounds like something I would do ;)
@War still getting some error with the connection string.
@Squiggle yeah, there are some I'm sure, but the time to find it grows exponentially...
War
War
@EsonRoxas hmmm ... can you connect manually through a simple console app using it ?
like just create a new MySqlConnection object and call connect on it
var con = new MySqlConnection("<your connn string>").Open();
if that works it may be config related
or maybe you just need to reinstall the ef package from nuget
oh wait you already did that
uh oh ... our production environment won't process an excel file from a client
contains the movement of a few hundred mill
brb
16:27
lol
That reminds me of the time on IRC (2003) I typed "holy crap my roof is on fire. brb" and wasn't seen again online for 3 days.
late night for wadry methinks
War
War
great ... prod db backup time
the upload is timing out
some tit thought it was a good idea to write a long running process in to a web request
so it pushes the file then "something" times out
probably the session / the http request result in the transation being disposed of
I can't believe people this dumb work as programmers
16:44
@War got to manage the connection strings, what's with this error? System.ArgumentNullException: Value cannot be null. Parameter name: value
@EsonRoxas which line?
I used this code.

public Startup(IHostingEnvironment env)
{
var builder = new ConfigurationBuilder()
.SetBasePath(env.ContentRootPath)
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
.AddEnvironmentVariables();
var Configuration = builder.Build();
}
public IConfigurationRoot Configuration { get; set; }
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
var connectionString = Configuration.GetConnectionString("DefaultConnection");
services.AddDbContext<BaseOnlineHotelReservationContext>(options => options.UseMySQL(connectionString));
(see full text)
There's a lambda somewhere that's trying to do something to an empty enumerable
@Squiggle that appears when i try to run update-database
do you have some EF migrations defined in code?
16:47
@mikeTheLiar what was the sql validator you use again? XD
@Squiggle I ran add-migration before update-database
so under Migrations Directory, it has 20160920071353_Initial-Migration.cs and BaseOnlineHotelReservationContextModelSnapshot.cs
if it happens in update-database, the problem could lie anywhere. Are your models valid db entities?
try update-database -Verbose
and see what the output is then
might tell you more about where it fails
War
War
@EsonRoxas I wish my problems were as simple as connection strings but no ...
An error occurred processing the auction results: An exception was caught during the execution of a retrieval query: Distributed transaction completed. Either enlist this session in a new transaction or the NULL transaction.. Check InnerException, QueryExecuted and Parameters of this exception to examine the cause of this exception.
that's so obscure its practically useless
the funny thing is from the wording it appears to be an exception message that an internal dev wrote
@Squiggle nothing unfamiliar with my models, i just add some data annotations such as [required]
Did you not check the InnerException, QueryExecuted and Parameters of the exception, @War?
16:51
@War my nose is starting to bleed.
Does anyone know a good sql syntax checker?
War
War
@Squiggle no because I can't this happens to be what I pulled from the event log (windows friggin event log ... really!!!) ... now i'm pulling a copy of the db down from the cloud so I can run the code for the web app against it locally
least that way I can inspect those things
@EsonRoxas yeh mine too :(
@KalaJ yeh SQL Management Studio
@War sux, bud. Enable tracing! or something
@Squiggle still got the same error when i try -verbose
System.ArgumentNullException: Value cannot be null. Parameter name: value
at Microsoft.EntityFrameworkCore.Utilities.Check.NotEmpty(String value, String parameterName)
@KalaJ +1 for SQL Management Studio.
16:53
lol
@KalaJ SQL Tidy but it only checks syntax as a side effect of trying to format it
War
War
@Squiggle This app needs to last until my new stack goes live ... Ireckon I need about another 3 months to keep this crap limping along
after that it's a non issue
And I'm not even sure it does that. I want to say it's complained about malformed SQL in the past
@War I admire your confidence.
g'luck
@mikeTheLiar Thanks Mike! I love the formatting and syntax check
War
War
16:54
@Squiggle non issue because it'll be replaced ... the new code is mostly in testing at the moment, there's a few more complex pieces that need to be built but 3 months should be enough
woo. I'm putting together a basic TypeScript/Angular SPA for a tutorial session tomorrow. Having documented the steps I took to do it, I'm not surprised some people get confused. There's literally 5 different ways to do everything.
Nobody seems to maintain their yeoman generators.
War
War
sounds about right
@Squiggle oh and thx by the way :)
i shall let you guys know how it goes

« first day (2166 days earlier)      last day (3008 days later) »