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
Thanks for the suggestion. My consideration of using "Time" suffix is to indicate this field stores the Time part of the DateTime type. If one field only stores the Date part, I would name it to CreatedDate. So, if you want to use "at", I'd still prefer to add "Time" to the end, i.e. CreatedAtTime.
For another instance, if you have one "interval" field, I'd name it to "IntervalSeconds" or "IntervalMinutes" or "IntervalHours", which makes it extreme clear to the other developers, without code comments.
In addition, I have some obsession in coding. And usually, it takes me several minutes to think out a field or property name when more than one way could be taken, e.g. "Last" should be cut in "LastUpdatedTime" for "UpdatedTime" is clear enough to developers and "LastUpdatedTime" is more like a Chinese naming way. And also, “CreatedAtTime” is complicated since "At" usually followed with a datetime. These come from what I found in a source opened PHP project and finally fixed my problem.
` public abstract class EntityBase
{
public Guid Id { get; set; }
CreatedTime>CreatedAt
LastUpdatedTime>UpdatedAt
If user needed, named like this:
CreatedBy
UpdatedBy
The text was updated successfully, but these errors were encountered: