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.
ObjectSchema.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="ObjectSchema.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Object providing access to schema information for</summary>
7//-----------------------------------------------------------------------
8using System.Web.UI.Design;
9
10namespace Csla.Web.Design
11{
12
21 public class ObjectSchema : IDataSourceSchema
22 {
23 private string _typeName = "";
24 private CslaDataSourceDesigner _designer;
25
32 public ObjectSchema(CslaDataSourceDesigner designer, string typeName)
33 {
34 _typeName = typeName;
35 _designer = designer;
36 }
37
38
43 public System.Web.UI.Design.IDataSourceViewSchema[] GetViews()
44 {
45 IDataSourceViewSchema[] result = null;
46 result = new IDataSourceViewSchema[] { new ObjectViewSchema(_designer, _typeName) };
47 return result;
48 }
49 }
50}
Implements designer support for CslaDataSource.
Object providing access to schema information for a business object.
Definition: ObjectSchema.cs:22
ObjectSchema(CslaDataSourceDesigner designer, string typeName)
Creates an instance of the object.
Definition: ObjectSchema.cs:32
System.Web.UI.Design.IDataSourceViewSchema[] GetViews()
Returns a single element array containing the schema for the CSLA .NET business object.
Definition: ObjectSchema.cs:43
Object providing schema information for a business object.