using System.Reflection;
using System.Configuration;
static string path = ConfigurationManager.AppSettings["dal"];//"DAL";
public T create<T>(string typeName)
{
return (T)Assembly.Load(path).CreateInstance(path + typeName);
}
return factory.create<daladd>(".daladd").add(model);
<appSettings>
<add key="dal" value="DAL"/>
</appSettings>