Tajmara

Tajmara

  • 1.8k
  • 273
  • 40.3k

HelpHelp multiplebranch insert record in same table ata time

Sep 17 2018 5:25 AM
MVC: 
 
in server its inserting duplicate records.
multiple branch insert the record in the same table at a time its inserting  duplicate records.
 
 please read carefully...
Already primary key auto increment identity column is there. 
 
Date, LastUpdate and UserName its everything same record bro.
ex:
id  tranid subid date createdbyusername createddate
 1     1 1 12-09-2018 1 12-09-2018
  2    1 1 12-09-2018 1 12-09-2018
 
list i have 5 items. but 0 items record only i wnat to insert bro.
 
set of list is there.in that list i want to insert list[0]->0 posititon record only i want to insert bro.  
 
in that list iw ant to insert only one record.
 
listof[0]items => only one record i wnant to insert.
currentdb.saveentity(listof[0]items, true);
i am waiting for ur reply bro.
ex :
foreach()
{
data;
}
\\only insert list of zero items record only.but it inserting dublicate records....
currentdb.saveentity(listof[0]items, true);
but it inserting duplicate records in mvc.
please help me.previously if anybody faced this type of issue.please give me a code.
please provide code this.thank you for your time..

Answers (1)