BARMAJA_CSHARP Telegram 179
إ₰...👨🏻‍💻CODE👩🏻‍💻...₰❥


كود إضافة البيانات الى جدول person كمثال

1- إنشاء obj من النسخة التي عملناها لقاعدة البيانات

mynewDataBaseEntities1 dbs = new mynewDataBaseEntities1();


private void btnSave_Click(object sender, EventArgs e)
{

Person Per1 = new Person ();

لاحظ انك اذا اردت الوصول الى اعمدة في جدول ما يجب عليك إنشاء object من هذا الجدول بعد ذلك يمكنك الوصول الى الاعمدة وإسناد القيم اليها


Per1.Id = Convert.ToInt16(txtper_ID.Text);
Per1.PerName = txtperName.Text;
Pre1.salary = Convert.ToInt16(txtPerSal.Text);

في الاخير اجراء التغييرات على قاعدة البيانات واضافة البيانات الجديدة

dbs.Person.Add(Per1);
dbs.SaveChanges();

}


•┈┈┈•❈••✦✾✦••❈•┈┈┈•
❥➺┊ @barmaja_Csharp
•┈┈┈•❈••✦✾✦••❈•┈┈┈•



tgoop.com/barmaja_Csharp/179
Create:
Last Update:

إ₰...👨🏻‍💻CODE👩🏻‍💻...₰❥


كود إضافة البيانات الى جدول person كمثال

1- إنشاء obj من النسخة التي عملناها لقاعدة البيانات

mynewDataBaseEntities1 dbs = new mynewDataBaseEntities1();


private void btnSave_Click(object sender, EventArgs e)
{

Person Per1 = new Person ();

لاحظ انك اذا اردت الوصول الى اعمدة في جدول ما يجب عليك إنشاء object من هذا الجدول بعد ذلك يمكنك الوصول الى الاعمدة وإسناد القيم اليها


Per1.Id = Convert.ToInt16(txtper_ID.Text);
Per1.PerName = txtperName.Text;
Pre1.salary = Convert.ToInt16(txtPerSal.Text);

في الاخير اجراء التغييرات على قاعدة البيانات واضافة البيانات الجديدة

dbs.Person.Add(Per1);
dbs.SaveChanges();

}


•┈┈┈•❈••✦✾✦••❈•┈┈┈•
❥➺┊ @barmaja_Csharp
•┈┈┈•❈••✦✾✦••❈•┈┈┈•

BY ❥͢ ❈↡< C# > برمجة


Share with your friend now:
tgoop.com/barmaja_Csharp/179

View MORE
Open in Telegram


Telegram News

Date: |

Just as the Bitcoin turmoil continues, crypto traders have taken to Telegram to voice their feelings. Crypto investors can reduce their anxiety about losses by joining the “Bear Market Screaming Therapy Group” on Telegram. Judge Hui described Ng as inciting others to “commit a massacre” with three posts teaching people to make “toxic chlorine gas bombs,” target police stations, police quarters and the city’s metro stations. This offence was “rather serious,” the court said. Private channels are only accessible to subscribers and don’t appear in public searches. To join a private channel, you need to receive a link from the owner (administrator). A private channel is an excellent solution for companies and teams. You can also use this type of channel to write down personal notes, reflections, etc. By the way, you can make your private channel public at any moment. The creator of the channel becomes its administrator by default. If you need help managing your channel, you can add more administrators from your subscriber base. You can provide each admin with limited or full rights to manage the channel. For example, you can allow an administrator to publish and edit content while withholding the right to add new subscribers. While the character limit is 255, try to fit into 200 characters. This way, users will be able to take in your text fast and efficiently. Reveal the essence of your channel and provide contact information. For example, you can add a bot name, link to your pricing plans, etc.
from us


Telegram ❥͢ ❈↡< C# > برمجة
FROM American