1
Answer

I have to insert randomly selected records in database, it can be either update of records or insertion then what is the best way to insert / update mass records?

hj jh

hj jh

12y
1.8k
1
I have 1 web application in c# & I have to save records in sql server database.
Now it can be insert or update if the same record is already inserted.
I have implemented it using foreach loop but I feel some better method should be available to insert multiple records.

Kindly give some suggestion for the same
Answers (1)
0
Frogleg

Frogleg

NA 7.9k 33k 13y
You need to create a new string

public static int DisplayCard()
{
int card = " ";
string  _card;
if (card = 14)
_card = "Ace";

if (card = 13)
_card = "King";

if (card = 12)
_card = "Queen";

if (card = 11)
_card = "Jack";

Have a search on the site for a better way of setting up card game
0
Vilas Gite

Vilas Gite

NA 2.9k 394k 13y
hI Sherry 
Please open below link which is recommended articles by Mindcrackers. :)
http://www.c-sharpcorner.com/UploadFile/puranindia/506/

hopes it will solve your prob.