Click here to Skip to main content
15,891,184 members

Comments by Member 13812021 (Top 22 by date)

Member 13812021 5-Mar-20 9:40am View    
Deleted
It does not like the AsEnumerable. 'DataTableExtensions.AsEnumerable(DataTAble)' is a method, which is not valid in the given context.
Member 13812021 18-Nov-18 14:29pm View    
So use roles to create this? I have roles but do not have anything implemented for those roles as to what each role is aloud to do. Any Examples of this would be great. I had planned on a later version to include in the admin dashboard a way to give permissions to the roles. What they can see and do with maybe a check box for each. I am new to C#. I have done this in PHP before but that is a different animal.
Member 13812021 30-Oct-18 21:54pm View    
I have decided to just run a stored procedure that inserts the CustomerName and gets the Id and then updates the CustomerId in the other table. Seems to be cleaner and keeps code out of the controller.
Member 13812021 30-Oct-18 15:38pm View    
That did not work. putting the code you have still has the message like before. I have found that you cannot get the CustomerId until it is saved. However I am still coming up with a 0 for CustomerId even when with breakpoints the CustomerId is what it is on the line of code to add. I just need to be able to update a record with the same userId with the CustomerId.
Member 13812021 30-Oct-18 14:08pm View    
Yvan, The CustomerId is the Key to the Customer table and gets auto incremented on adding. So maybe I should do something like this?
private readonly int CustomerId = CustomerId. I will play with it and see what I come up with. If you know a better way that would be great.