You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should generic app model have LocationID and ParentID fields? If so, why?
Wouldn't this be better?
funcdoSomething() {
org:=Organization{} // Loaded data from MySQLiforg.Location!=nil { // <-- this seems clearer to mean Location can be empty.locationID:=org.Location.ID
}
}
// VSfuncdoSomethingElse() {
org:=Organization{} // Loaded data from MySQLiforg.LocationID!=0 {
locationID:=org.LocationID
}
}
The text was updated successfully, but these errors were encountered:
I don't think Generic model should have LocationID and ParentID. If the objects a nil then they have no relevance and if they are not, the objects themselves hold their keys.
Suppose you have MySQL model:
which converts to "generic" app model:
Should generic app model have LocationID and ParentID fields? If so, why?
Wouldn't this be better?
The text was updated successfully, but these errors were encountered: