Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Eintrag in Datenbank mit LINQ

Empfohlene Antworten

Ich hab ne Klasse DVDs

<Table(Name:="DVDTable")> _

Public Class DVD


    <Column(IsPrimaryKey:=True, IsDbGenerated:=True)> Public ID As Integer

    <Column()> Public Name As String

    <Column()> Public Genre As String


End Class

Ich hätt jetz gern das die ID von alleine hochgezählt wird wie beim SQL Server z.B.

Ich hab einen Eintrag in der Datenbank, sobald jetz der nächste kommt gibts einen Fehler da die ID 0 bereits existiert. Ich bin absoluter LINQ Neuling, hab damit vor 1h begonnen, also erklärt es mir bitte so das ein Anfänger es auch versteht, danke.

Einfach die Spalte als Identity definieren und gut ist.

Und wie mach ich das!?

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.