Skip to content
This repository has been archived by the owner on Dec 24, 2022. It is now read-only.

JsConfig.ExcludePropertyNames in scope #358

Closed

Conversation

nhalm-zz
Copy link
Contributor

@nhalm-zz nhalm-zz commented Aug 2, 2013

I needed to be able to exclude someproperties from my dtos per request.
I added a new property ExcludePropertyNames to the JsConfig and to JSConfigScope. I left the original JsConfig.ExcludePropertyNames. I am using the WriteType to check the propertyInfo.RefelectedType.Name +"." + propertyInfo.Name against the ExcludePropertyNames. This way anything that you have set on the type JsConfig will still happen statically. I added propertyReflectedName and propertyCombinedNameUpper to TypePropertyWriter.

I added a new property ExcludePropertyNames to the JsConfig and to
JSConfigScope.  I left the original JsConfig<T>.ExcludePropertyNames.  I
am using the WriteType to check the propertyInfo.RefelectedType.Name
+"." + propertyInfo.Name against the ExcludePropertyNames.  This way
anything that you have set on the type config will still happen
statically.
@mythz
Copy link
Member

mythz commented Aug 2, 2013

Can you re-issue a new pull-request with the above changes, thx.

@mythz mythz closed this Aug 2, 2013
nhalm-zz pushed a commit to nhalm-zz/ServiceStack.Text that referenced this pull request Aug 5, 2013
nhalm-zz pushed a commit to nhalm-zz/ServiceStack.Text that referenced this pull request Aug 5, 2013
I made the changes from pull request ServiceStack#358.  I added the JsConfig and
JsConfigScope porperty ExcludePropertyReferences.  I added this so that
properties could be excluded in scope.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants