Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Browsing all 1698 articles
Browse latest View live
↧

selecting members from a dictionary with Linq - Operator '&&' cannot be...

pack.Data.Values contains several dictionary objects.It is passed into a method for further processing. In the method there is some linq code that returns a list of endPointIds:dp.Select(d =>...

View Article


Help to read into Database (vb code)

I am unsure as to how to read into database any help would be greatImports System.Data.SqlClient Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click '--...

View Article


How to create a querystring

If there is a query string at the end of my http link I dont want to display a textbox with a button (the manual way of executing my code)If the query string is present I would like...

View Article

How to generate tables in the test environment?

Hello guys,I implemented an ASP.NET web api in my development computer. I created entities with EF6. Now I would like to deploy my API into test environment. I would like to know how to generate my...

View Article

Image may be NSFW.
Clik here to view.

OrderBy null reference error.

Hi, I'm new in all of this about LinQ and Entity Framework.Here is the code:public class MyClass { public int MyClassId{get;set;} public string Description{get;set;} public virtual...

View Article


The ADO.NET provider with invariant name 'System.Data.SqlClient' is either...

I'm using .Net core 2.0 and after running my app I get this issue:The ADO.NET provider with invariant name 'System.Data.SqlClient' is either not registered in the machine or application config file, or...

View Article

EF random error

Hi guys I am working with EF on a project and it works fine but sometimes this exception appears.System.Data.Entity.Infrastructure.CommitFailedException: An error was reported while committing a...

View Article

Datatables data filled from MySQL server

Hello,I am attempting to run a simple ASP.NET datatable using jQuery and ajax. I have a functioning table when I run it with dummy data, however when attempting to connect to a remote MySQL server the...

View Article


DbContext ExecuteSqlCommand always return -1

Hi Guys,I am usingĀ DbContext ExecuteSqlCommand to execute below stored procedure but i always get -1 even if there is 1 record or no records.SPSET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER...

View Article


"Code First" problem - "may cause cycles or multiple cascade paths. Specify...

Im creating my databases using "Code First" C# model classes:class WishList { public int WishListId { get; set; } public System.String WishListName { get; set; } public int Product1Id { get; set; }...

View Article

How to apply join for models in view using entity framwork

Hi All,In my MVC application I am usingĀ Controller with views using Entity Framework.So the result I got below code in my view@Html.DisplaylFor(model => model.updatedby)Here the issue is that model...

View Article

'Validation failed for one or more entities. See 'EntityValidationErrors'...

Hi All,I am using MVC 5 with EF 6.In my application I choseĀ Controller with views using Entity Framwork, which automatically creates the view and methods like below.public ActionResult...

View Article

ErrorMessage for decimal in entity-framework-core

Hello im trying to customize error Message for decimal but it look like it is not work & im just getting the default error MSG , it's probably out of the box gut I just cant find it .Else > how...

View Article


How can I replicate the migration between 2 databases in EF?

HiI use EF Code First.. I have a SQL database.I would like to replicate the metadata and rows of the configuration file of the EF between many databases, in each EF migration.Since I want to have a...

View Article

Error in EntityFramework

here i am facing below errorAn exception of type 'System.ArgumentException' occurred in EntityFramework.dll but was not handled in user codeAdditional information: The ADO.NET provider with invariant...

View Article


How To Split String and Display result on DataTable

Good day all, I have this string...

View Article

How to deal with create ID and add to database at once issue

I have a need for a boss to create a database entry (So ID is created) but at the same time save this ID and his keyed in field values into the database.Of course this is ok when all are saved to...

View Article


What is the difference between Entity Framework and dapper?

HiI would like to know if I can haveĀ dapper codefirst to perform migrations such as Entity framework

View Article

Please kindly help me with this Database Relationship issue for CodeFirst...

Dear All,I have a business Application that I am developing. But right now, I have a system requirement. The core of the logic must be gotten right from the database. So I am abit confused on how to...

View Article

After giving default value to NULL, store procedure still demand the variable.

Hello Everyone,Below is my Store-procedure.ALTER PROC usp_module_assigned_details ( @CounrtyID BIGINT = NULL, @ModuleID BIGINT = NULL, @case INT ) AS BEGIN IF @case = 1 -- Select assigned module to the...

View Article
Browsing all 1698 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>