annotate Tools/DocGen/Content/Doc/EditableObjects/EditableObject.htm @ 6:11b6da379593

Исправлена странная ошибка при использовании OfType<...>().Where(...)
author cin
date Mon, 05 Dec 2016 05:50:52 +0300
parents f990fcb411a9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
1 <% title # EditableObject class %>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
2 <% order # 1 %>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
3 <p class="j">
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
4 <b>EditableObject</b> is an object that provides functionality to commit and rollback changes to itself.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
5 After verifying the accuracy of changes made to the object, you can accept the changes
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
6 using the <b>AcceptChanges</b> method of the object, which will set the <b>Current</b> field values
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
7 to be the <b>Original</b> values. The <b>RejectChanges</b> method rejects all changes made to the object
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
8 since <b>AcceptChanges</b> was last called. The <b>IsDirty</b> property gets a value that indicates
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
9 whether the object has changed.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
10 </p>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
11 <p class="j">
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
12 If we wrote an editable object manually, we could get the following code just for two editable properties:
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
13 </p>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
14 <% Doc\EditableObjects\ManualEditableObject.cs %>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
15
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
16 <p class='j'>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
17 BLToolkit allows implementing the same functionality by inheriting your object
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
18 from the BLToolkit <b>EditableObject</b> base class and replacing editable members with abstract properties.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
19 </p>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
20 EditableObjectTest.cs
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
21 <% ..\..\..\HowTo\EditableObjects\EditableObjectTest.cs %>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
22
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
23 <p class='j'>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
24 BLToolkit type builder will generate the following for the class above:
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
25 </p>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
26 <% Doc\EditableObjects\EditableObject.cs %>