CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
csla.netcore.test/Basic/NameValueListObj.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="NameValueListObj.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>no summary</summary>
7//-----------------------------------------------------------------------
8using System;
9using System.Collections.Generic;
10using System.Text;
11
12namespace Csla.Test.Basic
13{
14 [Serializable()]
15 public class NameValueListObj : NameValueListBase<int, string>
16 {
17 [Fetch]
18 protected void DataPortal_Fetch()
19 {
20 TestResults.Add("NameValueListObj", "Fetched");
21
22 this.IsReadOnly = false;
23 for (int i = 0; i < 10; i++)
24 {
25 this.Add(new NameValuePair(i, "element_" + i.ToString()));
26 }
27 this.IsReadOnly = true;
28 }
29 }
30}
This is the base class from which readonly name/value collections should be derived.
Static dictionary-like class that offers similar functionality to GlobalContext This is used in tests...
Definition: TestResults.cs:21
static void Add(string key, string value)
Add an item to the test results, to indicate an outcome of a particular operation
Definition: TestResults.cs:29
@ Serializable
Prevents updating or inserting until the transaction is complete.
@ Fetch
Fetch operation.