« first day (462 days earlier)      last day (876 days later) » 

8:16 AM
Hi Brad, did you use Identity for users authentication ?
If you start a new project in Asp.Net Core you can check Authentication User and you have all the infrastructure in project AspNetUser..Roles, Claims etc
 
 
3 hours later…
10:53 AM
Hi all
 
Hey Alex
 
Brad, the link from Cristi is excellent. Identity is how you'd want to do authentication/authorization
Hi Luca
(Typing too fast and misspelling!)
 
 
3 hours later…
2:02 PM
hey room
 
 
1 hour later…
3:09 PM
Hi kabuto
 
hows it going alex
 
It's going okay. How about you?
 
not too bad, had breakfast and now settling in to some work
hmmm is there a naming convention for controller items?
 
3:54 PM
Controller actions?
The name usually follows view names
Index() action for Index.cshtml, Edit() for Edit.cshtml,....
 
4:08 PM
True, but like in the case of editing different table types, for example Users and Cars tables
Would you do EditUser, EditCar ?
 
4:36 PM
Though it's basic
You would have a UserController with actions on that, and a CarController
 
4:52 PM
I currently have 1 post method for both creating and updating an item
do you think its wise to leave it as is?
I just check for if the id == 0 then its a new entity else update the existing one
 
Hi Guys
I have .net core app with code first migrations
everything is work local fine
i deployed the web to azure
how to deploy the DB ?
should i save the connection string of azure in app.setting
 
5:08 PM
@kabuto178 I've learned the hard way that single responsibility principle is important. In this case you can get by with this. If you knew on the client which should be called, you could split it to two
@Bassem Azure has its own keys for db connections
 
 
2 hours later…
7:39 PM
@Alex Gotcha, and it does allow for easier debugging
 

« first day (462 days earlier)      last day (876 days later) »