-
Notifications
You must be signed in to change notification settings - Fork 930
DateOnly and TimeOnly support #3712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Frédéric Delaporte <[email protected]>
| { | ||
|
|
||
| protected override string MappingsAssembly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: undue blank line.
| { | |
| protected override string MappingsAssembly | |
| { | |
| protected override string MappingsAssembly |
| } | ||
| public class TestEntity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: missing blank line.
| } | |
| public class TestEntity | |
| } | |
| public class TestEntity |
| ///// <inheritdoc /> | ||
| //public override object Get(DbDataReader rs, string name, ISessionImplementor session) | ||
| //{ | ||
| // return Get(rs, rs.GetOrdinal(name), session); | ||
| //} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this dead code?
| // object needs to have both class and serializable setup before it can | ||
| // be created. | ||
| RegisterType(typeof (Object), NHibernateUtil.Object, new[] {"object"}); | ||
| RegisterType(typeof (Object), NHibernateUtil.Object, new[] {"object"}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: probable trouble in previous suggestion, missing indent.
| RegisterType(typeof (Object), NHibernateUtil.Object, new[] {"object"}); | |
| RegisterType(typeof (Object), NHibernateUtil.Object, new[] {"object"}); |
Supporting DateOnly and TimeOnly. #2912
I have have working implementations of types that can store the values as int (20251028, 163215), but that may be something that should reside elsewhere.
I would very much like to support projecting properties like "Hour" and "Minute", even though a "ticks" based type is used. I had an implementation where the type itself could implement IHqlGeneratorForProperty, and the DateTimePropertiesHqlGenerator checked for this before going the default route. It worked well, but...