rgonek / ilaro.admin Goto Github PK
View Code? Open in Web Editor NEWGeneric admin panel for ASP.NET MVC.
Home Page: http://admin.ilaro.net/
License: MIT License
Generic admin panel for ASP.NET MVC.
Home Page: http://admin.ilaro.net/
License: MIT License
Good morning,
I install Ilaro Admin in a project. This project has a Code First Generate to create de Database and I use EF6. I show the list of entities but when I try to load the page with the data list of one of this entities or try to create a new data I recibe this error.
I try to find a solution by Internet but I couldn't.
I can't undersetand the next instruction (may be I have the problems for this reason):
Notificator in session scope
IEntityService => EntityService
Thanks
Add markdown editor
So this is easily reproduced at the demo site. The problem is that if Save button clicked for existing entity, and this entity has an empty DateTime field, the entity will not be saved, the DateTime field will be automatically set to 1/1/0001 12:00 AM and the following error will be displayed:
SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.
To reproduce this, go to the following record http://admin.ilaro.net/Admin/Order/Edit/10249 and clear out Shipped Date field, then try to save the entity. The error will be displayed.
This error arises in the Ilaro.Admin.Core.EntityRecordCreator class in GetPropertyValue method at the line 40:
33. private static PropertyValue GetPropertyValue(
34. Property property,
35. IValueProvider valueProvider,
36. Func<Property, object> defaultValueResolver = null)
37. {
38. var propertyValue = new PropertyValue(property);
39.
40. var value = valueProvider.GetValue(property.Name);
41. if (value != null)
42. {
43. if (property.IsForeignKey && property.TypeInfo.IsCollection)
44. {
45. propertyValue.Values = value.AttemptedValue
46. .Split(',').OfType<object>().ToList();
47. }
48. else if (property.TypeInfo.DataType == DataType.DateTime)
49. {
50. propertyValue.Raw = ParseDateTime(property, (string)value.ConvertTo(typeof(string)));
51. }
52. else
53. {
54. propertyValue.Raw = value.ConvertTo(
55. property.TypeInfo.OriginalType,
56. CultureInfo.CurrentCulture);
57. }
58. }
Peek:
var value = valueProvider.GetValue(property.Name);
Here valueProvider is of type System.Web.Mvc.FormCollection, and GetValue instead of null value (the date is null in the FormCollection itself), returns an empty string. And later on, DateTime.TryParse instead of working with null, is parsing an empty string.
DateTime picker
Date picker
Time picker
Delete EF context and use some cool library such as SImple.Data or Massive
Add nuget package
Add editor editor
Add numeric editor.
I use django in some projects instead of .NET just to use the admin.
With a tool like this I would get rid of django completely.
This project looks great. Is it dead? any plans to continue?
Hi again,
I have another problem. I create a new Issue because I think is better to find a solution for future users. I implement .Net Security Authentication and Authorization. I write a "admin" and "Admin" role. But when I try to enter a Ilaro Admin it not recognize the roles. I can entered only if I cannot use a role restriction.
I can't undersetand the next instruction (may be I have the problems for this reason):
Notificator in session scope
IEntityService => EntityService
Thanks
Describe how to use Ilaro.Admin.
How to compile etc.
What libraries I used etc.
The admin panel can be accessed without any login credentials. [Sign out button will be invisible]
Proof:
Just visit: http://admin.ilaro.net/Admin
Add upload file
Add saving changes for entity action (insert, update, delete).
Add client side and server side validation based on data annotation
Here Can you combine Add and Edit functionality in single page??
For example we have a DateTimePicker which using jquery plugin, and that plugin have some attributes.
Now if we want for example a diffrent date format for each DateTime properties, we need create template for each one, so it needs bit of work for us and code it's become messy.
So we need ability to add propertties for controls.
Hello,
Great job ! Do you develop too for core 1 ?
Thanks per advance
Localize strings using resource files
Fluent configuration for entities and properties in entities
Hello,
Thanks for the great efforts in the project. I was wondering if there any plans to add support for .Net core.
Thanks
When I saw this project, it's pretty much like a life-saver, but unfortunately it supports ASP.NET MVC 4 at highest, please could any one advise me how to integrate it with ASP.NET MVC 5?
http://admin.ilaro.net/Admin/Category
I don't think that "founded" is suitable here. Shouldn't it be replaced with "found" or "total"?
Available delete options:
hi.@rgonek
please describe how to use?
i create empty asp.net mvc application and install llaro with nuget command but after that i dont know ,what should i do.
please explain step by step.thanks.
Currently if we have Entity A and Entity B, and Entity A has a field with a Foreign Key relationship to Entity B, in the Results Table of an Entity A, it is possible to display only the ID of an Entity B.
This feature request is about being able to display not just ID of a related entity, but any field, or at least the description, because the ID is generally not very informative.
Before | After |
---|---|
Hello @rgonek ,
I really like your project and concept even i just thought to work on such type of projects which you have and i google it and i found your project but now i want to test and also if you need any help may be i can also help you out , but before that i want to know the flow of yours i am doing R&D. May be you can help on below questions:
a) How the Routes are working on Runtime
b) How to set route for particular HTML DOM
I will prepare more questions if i will have an issue .
Thanks for your code , i really like the concept you have.
Best Regards
Praveen Kumar
Create sample project
Start using bundles, and use minimal css and js files, delete all unnecessary files
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.