Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 15 results for
entityset
- Page 1
Violation of PRIMARY KEY constraint 'PK_client'. Cannot insert duplicate key in objec
Programming
Web Development
12 Years Ago
by jacob21
… behavior) +479 System.Data.Objects.ObjectContext.CreateFunctionObjectResult(EntityCommand entityCommand,
EntitySet
entitySet
, EdmType edmType, MergeOption mergeOption) +150 System.Data.Objects.ObjectContext…Deprecated Method for adding a new object to the airlines
EntitySet
. Consider using the .Add method of the associated ObjectSet&…
Cannot insert explicit value for identity column in table 'client' when IDENTITY_INSE
Programming
Web Development
12 Years Ago
by jacob21
… behavior) +479 System.Data.Objects.ObjectContext.CreateFunctionObjectResult(EntityCommand entityCommand,
EntitySet
entitySet
, EdmType edmType, MergeOption mergeOption) +150 System.Data.Objects.ObjectContext…Deprecated Method for adding a new object to the airlines
EntitySet
. Consider using the .Add method of the associated ObjectSet&…
The data reader is incompatible with the specified 'DatabaseModel.Max_id_showDatail_R
Programming
Web Development
12 Years Ago
by jacob21
….CreateColumnMapFromReaderAndType(DbDataReader storeDataReader, EdmType edmType,
EntitySet
entitySet
, Dictionary`2 renameList) +24 System…ColumnMapFactory.CreateFunctionImportStructuralTypeColumnMap(DbDataReader storeDataReader, FunctionImportMapping mapping,
EntitySet
entitySet
, StructuralType baseStructuralType) +72 System.Data…
problem related store procedure....
Programming
Web Development
12 Years Ago
by jacob21
….CreateColumnMapFromReaderAndType(DbDataReader storeDataReader, EdmType edmType,
EntitySet
entitySet
, Dictionary`2 renameList) +24 System…ColumnMapFactory.CreateFunctionImportStructuralTypeColumnMap(DbDataReader storeDataReader, FunctionImportMapping mapping,
EntitySet
entitySet
, StructuralType baseStructuralType) +72 System.Data…
[LINQ, C#]Problem with autogenerated DataClasses.designer.cs
Programming
Web Development
15 Years Ago
by szmitek
…: private bool _GroupActive; Line 427: Line 428: private
EntitySet
<Page> _Pages; Line 429: Line 430: …Line 453: { Line 454: this._Pages = new
EntitySet
<Page>(new Action<Page>(this.attach_Pages…", OtherKey="PagesGroupID")] Line 619: public
EntitySet
<Page> Pages Line 620: { Line 621…
MetaDataType with Entitysets in WPF
Programming
Software Development
10 Years Ago
by GeekByChoiCe
… my application i want to export some data from an
entityset
to excel. So far so good. But i want to…
Entity framework validation error with controller
Programming
Software Development
8 Years Ago
by Violet_82
… for this Entity Type -System.Data.Entity.Edm.EdmEntitySet:EntityType:
EntitySet
EmployerDetails is based on type 'EmployerDetails' that has no key…
Re: store procedure related
Programming
Web Development
12 Years Ago
by jacob21
….CreateColumnMapFromReaderAndType(DbDataReader storeDataReader, EdmType edmType,
EntitySet
entitySet
, Dictionary`2 renameList) +24 System…ColumnMapFactory.CreateFunctionImportStructuralTypeColumnMap(DbDataReader storeDataReader, FunctionImportMapping mapping,
EntitySet
entitySet
, StructuralType baseStructuralType) +72 System.Data…
Re: how to insert data into 2 table?
Programming
Web Development
13 Years Ago
by kvprajapati
… = TextBox_Form_Judul.Text, description = TextBox_Form_Deskripsi.Text, VERSIs = new System.Data.Linq.
EntitySet
<VERSI>() { new VERSI() { UrlFile = "Uploads/" + strFileName…
Re: Violation of PRIMARY KEY constraint 'PK_client'. Cannot insert duplicate key in objec
Programming
Web Development
12 Years Ago
by sufyan2011
I didn't read your code and also it is not possible but the error is simple you are trying to insert record in table and also passing the primary key value to table that is already exist in table. You can avoid such errors just to make the primary key autoincrement or put logic to check either your primary key value exist in DB then change it to …
Re: Cannot insert explicit value for identity column in table 'client' when IDENTITY_INSE
Programming
Web Development
12 Years Ago
by hericles
I'm not sure why you listed all that code. The part relevant to your SQL operation would have been adequate. I gave up looking for it so I don't know for certain the answer to your question but I would assume you are trying to insert a value into a column that is marked as IDENTITY. Option one (as the error message says) is to adjust your …
Re: Entity framework validation error with controller
Programming
Software Development
8 Years Ago
by djjeavons
Hi > Now, before you say "well then insert the key", please note that I have never had to do that before This is probably because your previous models used a public property with the name ID or *classNameID* such as EmployerDetailsID. Entity Framework will discern the primary key from this convention. However, in the model that you …
Re: Entity framework validation error with controller
Programming
Software Development
8 Years Ago
by Violet_82
Ah that's it, absolutely right djjeavons, I did have an ID in other projects, but I had absolutely no idea that EF got its primary key from there! Thanks for clarifying that, I will include it. Also, just to clarify something else, isn't it better if the class fields are declared private?
Re: Entity framework validation error with controller
Programming
Software Development
8 Years Ago
by djjeavons
> Also, just to clarify something else, isn't it better if the class fields are declared private? Not necessarily. It depends on their use. Looking at your EmployerDetails class, it makes no sense to have them all declared as private as nothing will be able to access them. I wonder if you are confusing "fields" with properties? For …
Re: Entity framework validation error with controller
Programming
Software Development
8 Years Ago
by Violet_82
maybe I'm getting confused, you're right, sorry it's that I'm still finding my way around MVC. In any case, thanks for clarifying things, much better now :-)!
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC