Daniele Teti
c2f51d4b11
CustomTypes + UnitTests
2017-02-10 14:20:06 +01:00
Daniele Teti
4cc5b6560c
CustomTypesSerialiers
2017-02-09 19:34:12 +01:00
Daniele Teti
9b70ee40fc
IMPLEMENTED
...
IMVCSerUnSer = interface
['{1ECA942A-E3C4-45DD-9D23-C00363B5E334}']
function SerializeObject(AObject: TObject; AIgnoredProperties: array of string): String;
function SerializeObjectStrict(AObject: TObject): String;
function SerializeDataSet(ADataSet: TDataSet; AIgnoredFields: array of string): String;
function SerializeCollection(AList: TObject; AIgnoredProperties: array of string): String;
function SerializeCollectionStrict(AList: TObject): String;
procedure DeserializeObject(ASerializedObject: String; AObject: TObject);
procedure DeserializeCollection(ASerializedObjectList: string; AList: IMVCList; AClazz: TClass);
end;
2017-02-08 18:30:32 +01:00
Daniele Teti
c8074649a1
2.1.3 (lithium)
...
FIX https://github.com/danieleteti/delphimvcframework/issues/64
ADDED Unit Tests for avoid regressions
2017-01-29 19:02:41 +01:00
Daniele Teti
32caa1edcd
2.1.2 (helium)
...
FIX for Delphi versions who don't have TJSONBool (Delphi XE8 or older)
Added new conditional define in dmvcframework.inc: JSONBOOL (defined for Delphi Seattle+)
2017-01-29 18:40:54 +01:00
Daniele Teti
71907802f0
ADDED SEMANTIC VERSION (DMVCFRAMEWORK_VERSION const in MVCFramework.Commons.pas hold the current version)
...
Updated the IDE Expert to show the current version of the framework
FIX to the mapper about the datasets null values (needs to be chack in old Delphi versions)
FIX to the dataset boolean values
ADDED more unit tests about nullability
2017-01-29 16:11:14 +01:00
Daniele Teti
808e3902d1
Moved TMVCHTTPMethodType and TMVCHTTPMethods to MVCFramework.Commons.pas (You controllers may not compile animore without using this unit)
...
Better mobile support for RESTAdapter
Better IFDEFing
2017-01-18 21:54:16 +01:00
Daniele Teti
ccc8ee90ab
FIX OnBeforeAction (Thank you to Marco Mottadelli)
...
More unit tests
Refactoring for XE6
Updated copyright to 2017
2017-01-05 12:45:51 +01:00
Daniele Teti
4092b08179
New Conditional Defines:
...
USEFIREDAC
USEDBX
STARTEREDITION
2017-01-03 13:35:49 +01:00
Daniele Teti
9e76485268
Samples Refactoring
2016-11-27 23:18:32 +01:00
Daniele Teti
25177d957f
All the unit tests are now merged in 1 project.
...
Submodules update, samples refactoring, build improvements.
2016-11-13 21:00:54 +01:00
spinettaro
3f0eb0d040
added support to serialize json null value as nil in object property
...
added relative test TestJSONObjectToObjectWithNullInJSONString
2016-10-26 14:42:45 +02:00
danieleteti
3672a73b8d
Names refactoring
...
Added TMVCController.RenderWrappedList to renders heterogeneous lists
2016-09-30 11:44:30 +02:00
spinettaro
d689e92642
added support in TMVCController and ObjectsMappers to serialize a IWrappedList
...
added link to LoggerPro in tests projects
2016-09-29 18:17:26 +02:00
MPannier
af0e4fdca7
removed Iocp.Logger.pas (no longer needed)
...
Delphi XE3 adjustments
added some missing consts to paramters (thanks to FixInsight; there are a lot more hints)
2016-09-27 14:22:17 +02:00
danieleteti
ce80bb79fd
Refactoring
2016-09-25 16:17:48 +02:00
Ezequiel Juliano Müller
bc425918b2
Add validation for JSON Null time field conversion.
2016-09-02 11:12:53 -03:00
danieleteti
1ef246a589
- Added strongly typed actions
...
- TWebContext param in the actions is optional
- In case of "action not found", the server dont returns NEVER the document index
- Refactoring
- More unit tests
- BasicDemo updated with typed actions
- Copyright updated (just formatting)
2016-06-22 17:50:31 +02:00
danieleteti
43c3881cc4
ADDED the followings method to TMVCController
...
-RenderJSONArrayAsProperty
-EnsureQueryParamExists
2016-05-11 10:40:12 +02:00
danieleteti
8d0e9dec45
ADDED support for ftLongWord in Mapper.DataSetToJSONObject and Mapper.JSONObjectToDataSet
2016-04-24 18:01:46 +02:00
danieleteti
06c9caa616
ADDED Mapper.LoadJSONObjectToObject
...
ADDED UnitTest for Mapper.LoadJSONObjectToObject
2016-03-24 15:30:18 +01:00
danieleteti
34d44f1cfe
fixed some border cases bug in samples/fileupload/FilesUploadDemo.dproj
...
removed unused variables in ObjectsMappers.pas
2016-03-23 10:13:35 +01:00
danieleteti
388ed31a0b
FIX Basd64 Stream serialization
...
ADDED Unit test for Stream de/serialization
2016-03-23 00:29:58 +01:00
MPannier
b907db3143
removed double IsNull checking in Mapper.DataSetToJSONObject (IsNull is checked at the beginning of the for loop)
2016-03-03 17:20:23 +01:00
danieleteti
51fe8bac94
MAPPER FIX about ISOStrToDateTime without seconds
...
MAPPER UnitTests Refactoring
2016-02-27 10:08:07 +01:00
Ezequiel Juliano Müller
1571cc2074
Update Copyright
2015-12-29 14:57:04 -02:00
Ezequiel Juliano Müller
a1d56ebc9c
Update licence
2015-12-22 09:38:17 -02:00
Ezequiel Juliano Müller
8a2e4408ed
GetBodyAsString support MapperListOf parameters
2015-12-22 09:14:34 -02:00
Tristan Marlow
80a0bc8f8c
MVCFramework option for unhandled actions
...
ObjectMappers DataSetToObject support boolean types
Sample\SoapRest Example application server providing both SOAP and REST webservices
2015-12-02 11:14:15 +08:00
danieleteti
7ca59a3b88
Mustache Server Side Views
2015-10-18 16:35:50 +02:00
Daniele Teti
fdb8e36106
Merge pull request #14 from ezequieljuliano/master
...
Add raise exception on JSONObjectToObject
2015-10-17 12:16:57 +02:00
danieleteti
6750ea7f5f
REMOVED some warnings
...
CHANGED Logger in winecellarWITHDORM Sample
Now ObjectsMappers serialize differently String and AnsiString
ADDED SAMPLE "deserilizeandserialize"
2015-10-17 12:00:05 +02:00
Ezequiel Juliano Müller
05d420de3b
Merge branch 'master' of https://github.com/danieleteti/delphimvcframework
2015-09-18 08:41:09 -03:00
danieleteti
46853a9f54
FIX Added StatusReason in RenderException
...
FIX Non ANSI characters were not correctly handled in TDataSetHelper
2015-08-27 11:13:40 +02:00
Ezequiel
e6573118e4
Adding functionality to convert normal lists
2015-07-10 14:38:59 -03:00
danieleteti
e495b31a25
Added support for ftWideMemo in DataSet de/serialization.
2015-07-03 16:28:31 +02:00
Ezequiel
3723eaef47
Add raise exception on JSONObjectToObject
2015-06-29 08:39:12 -03:00
daniele.teti
e774a53bdf
Removed some WARNINGS
2015-04-10 09:48:49 +00:00
daniele.teti
276ffc99aa
FIX Compilation bug on XE6 for the TDataSetHelper.LoadFromJSONArray
2015-04-10 08:41:39 +00:00
daniele.teti
3bca456d11
FIX Compilation bug on XE6 for the ToJSON method
2015-04-10 08:37:09 +00:00
daniele.teti
2ea8062889
FIX Mapper.JSONObjectFieldsToObject
2015-04-10 07:36:35 +00:00
daniele.teti
2a18719692
2015-04-10 07:13:02 +00:00
daniele.teti
1c0ebb763d
FIX serialization with fields.
...
thank you M. Del Magno
2015-04-09 17:57:13 +00:00
daniele.teti
02511a14e2
+ MERGE FROM "AUTH" FEATURE BRANCH
2015-04-01 15:01:23 +00:00
daniele.teti
1936fdc225
- refactoring
...
- cleaning up
- added "low-level" serialization based on fields (and not properties)
- added $dmvc_classname property handling for fields serialization
- added more unittests
2015-02-16 13:25:09 +00:00
ro
c1f030d9b5
fixed Error on map ParamAttribute and BodyAttribute
...
added overload of HasAttribute in TRTTIUtils
fixed error in objectsmappers whene JSONValue is nil
added relative tests
2015-01-17 16:19:09 +00:00
ro
6f640f4c95
fixed JSONArrayToObjectList by assign AOwnsChildObjects parameters to list
2015-01-16 13:41:21 +00:00
ro
037f4747a4
fixed Memory Leak on test TestObjectToJSONObjectAndBackWithStringStreamUTF16 and TestObjectToJSONObjectAndBackWithStringStreamUTF8;
2015-01-15 09:32:29 +00:00
daniele.teti
f20a7fe443
FIX for DataSetSerialization
2015-01-14 13:13:48 +00:00
ro
eed6ecf628
added no-Generics JSONArrayToObjectList
...
added TFieldNamePolicy enum, to manage the case serialization of DataSet to and from JSONObject
added RESTAdapter unit to turn your REST API into a Delphi Interface (beta)
added all relatives test for changes
minor bug fix
2015-01-14 10:39:44 +00:00