|
I generally just gave up on WPF when trying to switch form WinForms, and went straight to MVC web apps.
|
# ¿ Jan 10, 2015 00:50 |
|
|
# ¿ May 21, 2024 09:20 |
|
When you're responsible your writing and deploying applications, managing one internal IIS server become much better than dealing with desktops.
|
# ¿ Jan 12, 2015 05:34 |
|
I got into a stupid discussion on mvc today. The specific topic was whether using LINQ lambdas on a list to get a scalar value should be done in a view or in the model.
|
# ¿ Feb 13, 2015 01:34 |
|
Our third party order entry system uses SQL server on the backend(database A). I have number of table valued functions which I use to generate reports using a internal MVC web app, the web app calls them directly with System.Data.SqlClient. The web app has it's own database(B) and I use Entity framework, LINQ and lambas to make my life easy. I current have all those table valued report functions stored in database A. Is there any down side to moving all those functions to database B and adding them to the entity framework for easy of use?
|
# ¿ Feb 17, 2015 23:09 |
|
Is there a good resource for using json, ajax and js with MVC and .Net? I have been doing some MVC development off and on but it was mostly bootstrap html/css for the views and c# on the back end. I feel kind stupid when i come across simple stuff like using json and an ajax get for cascading combo-boxes which would have made my life so much easier months ago. Ajax partial page post backs were also a eye opener. There has to be a resource with more stuff like this.
|
# ¿ Mar 12, 2015 14:53 |
|
I have a MVC webpage which is used to add items to an order. Think of it like a stupid version of those design your own car webpages every manufacture has now. It has 3 sections, the first section is html form with some inputs used to select and add an single item to the order. The second section is a preview image rendered by the server based on uses current order. The third section is a second html form which is used to remove a previously added part from the order. This is clunky as hell with two different html forms being posted. I am thinking I have a few ways I think I could make this better:
|
# ¿ Mar 17, 2015 16:09 |
|
I know this might be pure convention, is it proper in .NET MVC and in MVC design in general to have a view that just consists of other views? I have 3 partials views which I want to display on a single page, do I make a "wrapper" view and just call each of the partials, or do I promote on of the partials to a full view. On one hand is kinda seems like useless junk but on the other I can see it being nice.
|
# ¿ Mar 23, 2015 16:58 |
|
I might be completely insane for even thinking this is possible but here it goes. Could a template in VS take a c# class and create a matching Controller. I would like to turn this: code:
code:
|
# ¿ Apr 8, 2015 15:53 |
|
GrumpyDoctor posted:Not statically, I don't think. You'll need runtime shenanigans (either with dynamic or reflection). RICHUNCLEPENNYBAGS posted:I dunno about with Visual Studio but I solved a similar problem by using reflection and a StringBuilder and TagBuilder to build up Angular HTML views and JavaScript services to talk to my WebAPI controllers. So sure, it's possible to do. Thank you both for the suggestions. I have an ugly winform app, that I have managed to strip out most of the business logic into its own project. I would like to use that business logic to create a single page web app(maybe 3 pages at most) to replace it. I figured wrapping everything in json would a good place to start.
|
# ¿ Apr 9, 2015 16:09 |
|
So am I missing anything?
|
# ¿ Apr 30, 2015 21:11 |
|
Could I split out my entity frame work edmx model and various classes into its own project and use that project in multiple solutions? How would that work with config files? I would like to be able to refuse my entity model from my MVC site on a couple of desktop solutions.
|
# ¿ May 15, 2015 16:01 |
|
Can't you just do a basic event handler to check if enter is keydown and textbox has focus? Couldn't you also just do text.TrimEnd(new char[] { '\r', '\n' }) on textbox change event if you want something simple and kinda hackish?
|
# ¿ May 20, 2015 18:01 |
|
Does this seem sane and do able? It would be nice to know if I am being a complete moron before I start coding. Right now I have everything functioning in a single terrible for loop that takes 1 to 15 minutes to completes depending on the how many items get posted back to the server.code:
|
# ¿ Jun 1, 2015 15:41 |
|
Thanks for the reply that makes a lot of sense, the simple web application kinda ballooned over time. I used rotativa (wkhtmltopdf C# lib) generate some simple pdfs of invoices then it kinda transformed into creating 100 page pdfs over time. If I am going to making a background service is it best to have one service per website or compartmentalize them even more? One service for file creation, one for emails, one for faxes, etc?
|
# ¿ Jun 1, 2015 16:56 |
|
fleshweasel posted:Are there any trip reports out there of people's experience working on ASP.NET projects with Visual Studio Code? It use it to edit config files, I fire up VS for just about everything else.
|
# ¿ Jun 13, 2015 21:05 |
|
If I want to mess around with AngularJS and MVC, is it best to just to wait for ASP.NET 5 to be released?
|
# ¿ Jun 29, 2015 19:53 |
|
If your file server is a windows 7 box why just write a stupid little web app to run on IIS?
|
# ¿ Jul 3, 2015 23:11 |
|
Just an FYI, it seems Nuget in VS2015 doesn't seem auto checkout nuget.config from source control, and if it can't write to the file it just crashes and writes an error to the activity log. It also seems when you update which version of MVC you are using it does not update web.config in the Views folder.
|
# ¿ Jul 21, 2015 17:18 |
|
ljw1004 posted:Calidus, I wonder if you're experiencing the same as this? https://github.com/NuGet/Home/issues/985 Yep that seems to be exact the issue i was dealing with.
|
# ¿ Jul 22, 2015 21:34 |
|
Is there an easy way to find all the references/links to a view in a project? I have 10 views which are basically duplicates of 3 views. I would like to clean up those 10 views, but I don't want to miss a existing link that is coded into some other view.
|
# ¿ Jul 23, 2015 15:11 |
|
I am trying to use the MVC Entity scaffolding to create a some pretty standard views in VS2013 Update 5, but I keep getting: There was an error running the selected code generator 'Object reference not set to an instance of an object.' It seems to happen on all my classes. It is driving me batty, I have reinstalled Entity and reinstalled MVC in my projects and I repaired VS2013. I have WebTools installed. I even tried creating a new solution with a entity model and the mvc starter code but it still failed. The same thing also happens in VS2015. edit: I have tried it on a coworkers machines and I get the same issue, so I guess it must be something with my solution/project. Calidus fucked around with this message at 23:32 on Jul 31, 2015 |
# ¿ Jul 31, 2015 22:20 |
|
I have given up on my issue. Has anyone tried using Win10 as a .Net Dev environment yet?
|
# ¿ Aug 3, 2015 17:52 |
|
EssOEss posted:I am using Windows 10 with great success so far. No complaints. Anything specific you are worried about? I have to target .Net 4 and a couple of xp machines(yes it is terrible I know) just worried oddities nothing really specific.
|
# ¿ Aug 3, 2015 19:06 |
|
chippy posted:So Intellisense has suddenly broken on all my Views in an MVC project. Suddenly the opening @model, ViewBag, and anything like ActionLink, DisplayFor are underlined, model and ViewBag 'do not exist in the current context'. The project still builds and runs just fine. I would give a rebuild a try and possibly look into nuking your pdb files.
|
# ¿ Oct 26, 2015 18:04 |
|
Anyone have experience with Visual Studio online? I want to put my visual studio 2010 installation out to pasture, but buying TF for 2 to 3 developers seems kinda stupid. I was also debating on switching over to git, this projects to immgrate looks pretty nice: https://github.com/git-tfs/git-tfs
|
# ¿ Oct 27, 2015 14:57 |
|
No Safe Word posted:git-tfs is pretty decent but if you have a fair amount of branch history and/or have done any nontrivial branching/reparenting or otherwise futzing with the hierarcy, git-tfs will straight up fail. I wanted to do the same but just couldn't. But if it's a relatively simple repository, it works quite well. Everything I have is pretty simple, it is basically 15 small projects each with Dev, Main and ReleaseX.X.X.X branches.
|
# ¿ Oct 27, 2015 15:35 |
|
Ithaqua posted:I have extensive experience with VSO (it's a big part of my job). VSO is awesome. Work management, SCM, build, release, testing, and soon package management all integrated together is rad. Right now we have two developers including myself. Management likes using Basecamp for project management because it is stupidly simple and it integrates with Highrise(CRM). So we never really used the Workflow functions of TFS. I was mainly looking at Git because source control is the only thing we use TFS for 99% of the time right now. Online would be nice just for the added benefit of it is one less thing I have to backup locally. Maybe I will give it a go mess around with VSO for a while and see how it works.
|
# ¿ Oct 27, 2015 16:21 |
|
On the topic of windows 10, is it safe to do .net 4 development on a windows 10 machine? I would really like to upgrade my work machine from 7 but I am kinda nervous windows 10 might jack up my development environment.
|
# ¿ Nov 18, 2015 15:06 |
|
kingcrimbud posted:Why would a sql query generated from Entity Framework take minutes to execute, yet when the same query is run within SSMS, it takes less than a second? Are you by chance doing a insert? In my experience entity inserts are terribly slow. Entity also seems to take a larger performance hit do to missing keys and indexes than raw sql.
|
# ¿ Dec 4, 2015 18:01 |
|
Years ago I made a lovely drupal website on an aws micro instance, I don't know enough php do what I want and I don't really want to learn php. Are there any .net CMS that are easy to interact with and expand? I have a couple MVC sites that developed and deployed to IIS. Umbraco seems pretty nice.
|
# ¿ Dec 18, 2015 18:51 |
|
Anyone ever had to use the QuickBooks .NET API/SDK? General thoughts? Easy to use?
|
# ¿ Jan 22, 2016 21:35 |
|
Is it bad practice to store user information in session variables? I just realized how many times I look up basic user information in the database and I was thinking about keeping basic things like company id, company route and company discount in session variables so I don't need to query the database all the time.
|
# ¿ Feb 11, 2016 16:31 |
|
The Wizard of Poz posted:I have an MVC5 project that I'm working on that, after receiving a file upload, has to notify a person by email that the upload has occurred. I want to hand this off to a separate process so that the user can get the HTTP response back and continue on their way without waiting for the email to send, since it's not a critical part of the process from the user's point of view and there's no reason they should wait. I did something similar with a console app and a SQL table that I treated like a Queue. Every time the MVC site needs to send an email to just write a row to the table. Then I the console app was setup to run every X minute(s) via the task scheduler. It is nothing fancy but works well, and the separation is nice for troubleshooting.
|
# ¿ Feb 24, 2016 00:10 |
|
I have a Solution that contains a MVC 5 project, a business logic project and DAL project. When I try use the MVC scaffolding with my entity frame work objects in my DAL project I keep getting “Object reference not set to an instance of an object.” The MVC project has a reference to my DAL project. I tried creating a test db context inside my MVC project and I got the same error. This is driving me up a wall. I am using VS2013.
|
# ¿ Mar 3, 2016 17:30 |
|
Calidus posted:I have a Solution that contains a MVC 5 project, a business logic project and DAL project. When I try use the MVC scaffolding with my entity frame work objects in my DAL project I keep getting “Object reference not set to an instance of an object.” The MVC project has a reference to my DAL project. I tried creating a test db context inside my MVC project and I got the same error. This is driving me up a wall. I am using VS2013. Encase anyone else runs into this terrible poo poo. I had to uninstall EF from all of my projects and after reinstalling it I error about missing meta data and being unable to find the CLR for a class. Turns out that classes mapping was messed up in my EDMX model. The really confusing part is that model wasn't even the one being used to created a controller and seemed to work when using it for LINQ and Lamda functions.
|
# ¿ Mar 4, 2016 00:01 |
|
fsharpConf 2016 https://channel9.msdn.com/
|
# ¿ Mar 4, 2016 19:05 |
|
Entity Framework Question: What is the advantage of using EF Designer from Database apposed to Code First From Database?
|
# ¿ Mar 4, 2016 19:26 |
|
I am terrible hack who just writes ugly code than has ReSharper pretty it up for me.
|
# ¿ Mar 5, 2016 01:26 |
|
Cuntpunch posted:I'm going to presume you are using the strict literal sense of 'EF Designer from Database'(aka the project template name) - where you are functionally doing a Database-first approach - and not a designer-first to generate both code *and* DB. Yes if you already have your database and you want to hook EF into to, VS has two templates to do that. I am trying to figure out which one better suits my needs.
|
# ¿ Mar 5, 2016 06:56 |
|
|
# ¿ May 21, 2024 09:20 |
|
Is there anyway to prevent the EF templates from overwriting modified classes? I have added constructors to the majority of my class I don't want those changes getting nuked every time I run update model from database.
|
# ¿ Mar 8, 2016 16:43 |