Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Event subscriptions - best practices

$
0
0

About the OnNew event - you shouldn't manipulate your cache on this one. OnNew gets fired when DataConnection.New<T>() is called and you can set things like default value on properties before the newly created T gets returned to the caller. So On New run before OnAdd and OnAdd may never be called later on.


Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>