Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update Not Working
Message
Information générale
Forum:
ASP.NET
Catégorie:
LINQ
Divers
Thread ID:
01502033
Message ID:
01502043
Vues:
38
Yes

>Do you have a primary key identified for the table in SQL Server?
>
>
>>Why doesn't this work????
>>
>>
>>using (AppSecurityDataContext dc = GetDataContext())
>>{
>>    tblUsersInApplication uia = new tblUsersInApplication
>>    {
>>        UserId = um.UserId,
>>        ApplicationId = LoginCredentials.ApplicationId,
>>        LastLoginDateTime = DateTime.Now
>>    };
>>
>>    try
>>    {
>>        dc.SubmitChanges();
>>    }
>>    catch (Exception e)
>>    {
>>        Error = e;
>>    }
>>}   
>>
>>
>>I get no exceptions. Runs fine. The date/time doesn't show up in the SQL table after it runs.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform