Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update Not Working
Message
General information
Forum:
ASP.NET
Category:
LINQ
Miscellaneous
Thread ID:
01502033
Message ID:
01502086
Views:
48
I think you need a line like:
dc.tblUsersInApplications.InsertOnSubmit(uia);
>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.
Mike C.
-------
I keep trying to find a life of my own, apart from you.
DC Talk/Charlie Peacock, In the Light.
www.risensystems.com/ra/itlbegin.rm
Previous
Reply
Map
View

Click here to load this message in the networking platform