CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Go to the documentation of this file.
2// <copyright file="MobileFactoryLoader.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Class containing the default implementation for</summary>
8using System;
9using System.Collections.Generic;
10using System.Linq;
11using System.Text;
12using Csla.Properties;
22 {
37 public object GetFactory(string factoryName)
38 {
39 var ft = Type.GetType(factoryName);
40 if (ft == null)
41 throw new InvalidOperationException(
42 string.Format(Resources.FactoryTypeNotFoundException, factoryName));
43 return Reflection.MethodCaller.CreateInstance(ft);
44 }
45 }
A strongly-typed resource class, for looking up localized strings, etc.
static string FactoryTypeNotFoundException
Looks up a localized string similar to Factory type or assembly could not be loaded ({0}).
Class containing the default implementation for the FactoryLoader delegate used by the data portal ho...
object GetFactory(string factoryName)
Creates an instance of a mobile factory object for use by the data portal.
Defines an interface to be implemented by a factory object that returns MobileFactory objects based o...