Data dodania Pytanie
2017-08-13 10:08 How can I get Entity Framework dynamic query result for web api result »
I am developing a report viewer as ap.net web api application. SO I need an entity framework dynamic query result. public IEnumerable<dynamic> ...
(1) odpowiedzi
2017-08-12 21:08 RESTful service to make a request to foreign API and update SQL Server database »
I want to make a RESTful API (or any other way that can get it done, really) to have it work in a loop to do a specified task everyday at the same hou...
(2) odpowiedzi
2017-08-12 20:08 Linq Where local counter closure different results in VS watch »
I try to delete first 3 elements in array with LinQ Where extension function. Here is an example: var array = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; v...
(1) odpowiedzi
2017-08-12 19:08 Filters and FilterProvider with Dependency Injection; Manage Per-request? »
I have been experimenting with Unity and a customer Filter / FilterProvider. My concern is that the classes are never disposed. Here is a code example...
(1) odpowiedzi
2017-08-12 18:08 ASP.NET Core MVC Dependency Injection issue »
I'm relatively new to ASP.NET Core MVC and am running into issues with dependency injection. I have a solution with multiple projects in which I want...
(2) odpowiedzi
2017-08-12 16:08 Communication between windows service and WPF with self-hosted owin web api »
I need to make a WPF application running under a regular account and a windows service that will run under the admin account. The WPF application will...
(0) odpowiedzi
2017-08-12 11:08 I can use EF Core 2.0 in production applications? »
Here in this blog, they say that .net standard 2.0 it has a consistence state. In the official web, it doesn't say if .net standard 2.0 is preview or...
(2) odpowiedzi
2017-08-12 10:08 What's the difference between type definition and type reference? »
I am reading the book CLR via C# by Jeffrey Richter. In Chapter 23(23.3.2), it says "A System.Type object represents a type reference(as opposed to ...
(3) odpowiedzi
2017-08-12 09:08 Display in mvc table days from begin job date »
I'm new with MVC, I have a model with employee properties, one of the properties is public DateTime BeginJob { get; set; }. When the user create a new...
(1) odpowiedzi
2017-08-12 07:08 System.MissingMethodException in Program.cs »
This exception just appeared in Program.cs when creating the host variable, I didn't update anything in Program.cs so I don't know why it appears. I'v...
(1) odpowiedzi
2017-08-11 18:08 Return TitleCase JSON from one API call, use camelCase on the rest »
I currently have my web API set up to return all JSON in a camelCase format with the following code in WebApiConfig: var formatter = GlobalConfigurat...
(2) odpowiedzi
2017-08-11 15:08 How to set IsModified to false on a property in a related Collection in EF Core? »
I am using Asp.Net Core 1.1 and I have two classes: public class Scale { [Key] public int ScaleId { get; set; } public string Name { get...
(1) odpowiedzi
2017-08-11 15:08 mvc call api controller PostAsJsonAsync action Method name Get »
I am doing an Asp .Net MVC 5 APP and I am calling an API Controller using PostAsJsonAsync like this int value=0; HttpResponseMessage response = await...
(1) odpowiedzi
2017-08-11 14:08 Why nothing is printed on the console? »
I create 2 methods that print x and y 100 times. I want them to run concurrent and I expect the output to be xxxxyxyxyyyxyyxyx... sthg like that. It ...
(3) odpowiedzi
2017-08-11 13:08 Autofac and scope issues »
Ok, this is starting to get on my nerves. I wish I had never started using Autofac, it has just become too difficult to use. I have created a Module ...
(0) odpowiedzi
2017-08-11 11:08 Get AuthenticationInfo in ASP.NET Core 2.0 »
How do I get the AuthenticationInfo property from the HttpContext in ASP.NET Core 2.0. I understand that with the redesign of Security in ASP.NET Core...
(1) odpowiedzi
2017-08-11 10:08 PasswordVault security when used from Desktop app »
I'd like to use Windows.Security.Credentials.PasswordVault in my desktop app (WPF-based) to securely store a user's password. I managed to access this...
(1) odpowiedzi
2017-08-11 08:08 How to check the result length of where »
List<object> _list = new List<object>(); public object Get => _list.Where( x => x.GetType() == typeof( int ) ).First(); Using t...
(5) odpowiedzi
2017-08-11 05:08 Webapi2 - Return from controller action after one task completes, but continue with further Async processing »
I have a question about Webapi2 My application is fully async/await, but I want to optimize the last part. I have a hard time finding out, so is ther...
(3) odpowiedzi
2017-08-11 03:08 Where to use Task.Run if using a library does not support async await »
I have an application which sends a message over the network, and I would like to perform other work while waiting for the message to be sent and resp...
(2) odpowiedzi
2017-08-10 22:08 HttpConfiguration method EnableCors not found »
Enabled CORS on one project, trying to do it on another existing project, however the "EnableCors" method cannot be found in during compilation: publ...
(1) odpowiedzi
2017-08-10 21:08 Conditional Html inline style attribute using razor »
Using Razor, in the following iteration of items in a View, how can we make the CustName input readonly if CustName is not empty @model ABCTest.Mode...
(1) odpowiedzi
2017-08-10 21:08 "The requested resource does not support http method 'OPTIONS'" when using EnableCors »
I want to enable CORS on one specific action in an Asp.net Web Api. Here's how I'm trying to do it: [Route("api/mycontroller/myaction")] [HttpPost] [...
(2) odpowiedzi
2017-08-10 18:08 unity2d create a one side collider »
I have a maplestory game demo I need character can jump through a collider from one side the collider in my character and ground are like this: cha...
(1) odpowiedzi
2017-08-10 16:08 DropDownList always displays the first element »
I have the DropDownList which has two items. When I select the second one, it flashes it then goes back the first one immediately. @Html.DropDownList...
(1) odpowiedzi
2017-08-10 15:08 Suppress "Use of unassigned local variable" error? »
I have a method like so: public static long? FromIpv4ToLong(this string ipAddress) { var octets = ipAddress.Split(IpSplitChar); if (octets.Le...
(3) odpowiedzi
2017-08-10 05:08 C# Web API POST method for Json Multiple Array »
I am working on a project which requires POST method for a multiple-array Json where the data are located on 5 different relating tables with FK. her...
(2) odpowiedzi
2017-08-09 22:08 How to configure NServiceBus 6 to use an existing StructureMap container in Web API? »
I have a Web API application working with StructureMap and I've introduced the latest version of NServiceBus (version 6) to introduce pub/sub for chan...
(1) odpowiedzi
2017-08-09 20:08 Extend BadResult to give different StatusCode »
From an asp.net core Controller I can return BadResult(ModelState) and this gives a statusCode of 400. Is it possible for me to extend this, or levera...
(1) odpowiedzi
2017-08-09 18:08 passing a list to a list<T> »
I am working with openxml, and have something that is pulling my hairs up, basicly i am editing a pré existing document, it is a template, the templa...
(1) odpowiedzi
2017-08-09 16:08 Get timespan of every row in datagridview in C# »
So I doing a small agenda and I will insert the to-do list into a database and populate it in the DataGridView along with the DateTime.Now when I save...
(3) odpowiedzi
2017-08-09 16:08 How to Manually Set Assembly Version »
This one is giving me such a headache. We used to put things in the project properties under [assembly: AssemblyVersion("1.0.0.0")] I am totally fine...
(1) odpowiedzi
2017-08-09 14:08 C# WebRequest - HTTP: 403 Forbidden ('_xsrf' argument missing from POST) »
I'm stucked here at getting a WebResponse from HTTPWebRequest. The WebRequest.GetResponse() Method throws a WebException ("500 Internal Server Error...
(2) odpowiedzi
2017-08-09 13:08 Using Selectpicker with Knockout »
i use Knockout to make a smooth CRUD, so i have theese two scripts options it shows the display, as a default and it shows Edit when i want to create...
(0) odpowiedzi
2017-08-09 11:08 Unity Increasing a value and then decrease it (DayNightCycle) »
I have a cycle and want the cycle bar, having a value range from 0 to 1 and back to 0. So, currently I use this code public class DayNightCycle : ...
(3) odpowiedzi