this package designed to enhance your Entity Framework experience by offering custom converters and comparers tailored for DateOnly and TimeOnly types.
$ dotnet add package Muslim.DateOnlyTimeOnlyConverterthis package designed to enhance your Entity Framework experience by offering custom converters and comparers tailored for DateOnly and TimeOnly types.
Simplify your workflow by seamlessly converting between DateOnly and DateTime types with the DateOnly Converter provided by this package. Enjoy the flexibility of effortlessly switching between these date representations.
Effortlessly manage TimeOnly and DateTime types using the TimeOnly Converter included in this package.This converter streamlines the conversion process, making it easy to work with TimeOnly instances in your Entity Framework applications.
modelBuilder.Entity<Student>().Property(s => s.CreatedDate).HasConversion<DateOnlyConverter, DateOnlyComparer>();
modelBuilder.Entity<Student>().Property(s => s.CreatedTime).HasConversion<TimeOnlyConverter, TimeOnlyComparer>();