Ignore a property from a code first generated entity

前端 未结 2 1254
我寻月下人不归
我寻月下人不归 2020-12-11 04:57

Is there a .Net attribute that will tell Breeze to completely ignore a property?

I know that making the property protected is one way to hide it from Breeze and prev

2条回答
  •  甜味超标
    2020-12-11 05:07

    If you are using the Json.Net serializer ( the Breeze.WebApi default) you can use the JsonIgnoreAttribute, described here

提交回复
热议问题