public static Comment FromRow(this Comment comment, DataRow row) { comment.AccountId = row.GetIntField("AccountId"); comment.CommentId = row.GetIntField("CommentId"); comment.Content = row.GetStringField("Content"); comment.InsertedDateTime = row.GetDateTimeField("InsertedDateTime"); return comment; }