本文整理汇总了C#中ITypesInfo类的典型用法代码示例。如果您正苦于以下问题:C# ITypesInfo类的具体用法?C# ITypesInfo怎么用?C# ITypesInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ITypesInfo类属于命名空间,在下文中一共展示了ITypesInfo类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: CriteriaObjectReplacer
public CriteriaObjectReplacer(ITypesInfo typesInfo)
{
if (typesInfo == null)
throw new ArgumentNullException("typesInfo");
this.typesInfo = typesInfo;
}
开发者ID:derjabkin,项目名称:eXpand,代码行数:7,代码来源:CriteriaObjectReplacer.cs
示例2: NHObjectSpaceProvider
public NHObjectSpaceProvider(ITypesInfo typesInfo, IPersistenceManager persistenceManager)
{
Guard.ArgumentNotNull(typesInfo, "typesInfo");
Guard.ArgumentNotNull(persistenceManager, "persistenceManager");
this.typesInfo = typesInfo;
this.persistenceManager = persistenceManager;
}
开发者ID:kamchung322,项目名称:eXpand,代码行数:7,代码来源:NHObjectSpaceProvider.cs
示例3: NHNestedObjectSpace
internal NHNestedObjectSpace(ITypesInfo typesInfo, IEntityStore entityStore, IPersistenceManager persistenceManager,
Dictionary<object, ObjectSpaceInstanceInfo> instances, NHObjectSpace parentObjectSpace) :
base(typesInfo, entityStore, persistenceManager, instances, null)
{
this.parentObjectSpace = parentObjectSpace;
}
开发者ID:aries544,项目名称:eXpand,代码行数:7,代码来源:NHNestedObjectSpace.cs
示例4: CustomizeTypesInfo
public override void CustomizeTypesInfo(ITypesInfo typesInfo) {
base.CustomizeTypesInfo(typesInfo);
if (!RuntimeMode) {
CreateDesignTimeCollection(typesInfo, typeof(UserModelDifferenceObject), "Users");
CreateDesignTimeCollection(typesInfo, typeof(RoleModelDifferenceObject), "Roles");
}
}
开发者ID:kevin3274,项目名称:eXpand,代码行数:7,代码来源:ModelDifferenceModule.cs
示例5: CustomizeTypesInfo
public override void CustomizeTypesInfo(ITypesInfo typesInfo) {
base.CustomizeTypesInfo(typesInfo);
if (!RuntimeMode) {
CreateDesignTimeCollection(typesInfo, typeof(SendEmailJobDetailDataMap), "Users");
CreateDesignTimeCollection(typesInfo, typeof(SendEmailJobDetailDataMap), "Roles");
}
}
开发者ID:kevin3274,项目名称:eXpand,代码行数:7,代码来源:JobSchedulerJobsModule.cs
示例6: UpdateLayoutManager
void UpdateLayoutManager(ITypesInfo typesInfo) {
if (!(LayoutManager is ILayoutManager)) {
var typeInfo = ReflectionHelper.FindTypeDescendants(typesInfo.FindTypeInfo(typeof(ILayoutManager))).FirstOrDefault();
if (typeInfo != null)
this.SetPropertyInfoBackingFieldValue(view => view.LayoutManager, this, ReflectionHelper.CreateObject(typeInfo.Type));
}
}
开发者ID:paulute,项目名称:eXpand,代码行数:7,代码来源:XpandListView.cs
示例7: CreateMembers
void CreateMembers(ITypesInfo typesInfo, Type optionsType, Type persistentType) {
ITypeInfo typeInfo = typesInfo.FindTypeInfo(ReflectionHelper.GetType(persistentType.Name));
IEnumerable<PropertyInfo> propertyInfos = optionsType.GetProperties().Where(info => info.GetSetMethod() != null).Where(propertyInfo => typeInfo.FindMember(propertyInfo.Name) == null);
foreach (PropertyInfo propertyInfo in propertyInfos) {
OnCreateMember(typeInfo, propertyInfo.Name, propertyInfo.PropertyType);
}
}
开发者ID:kevin3274,项目名称:eXpand,代码行数:7,代码来源:XpandPivotChartModuleBase.cs
示例8: CustomizeTypesInfo
public override void CustomizeTypesInfo(ITypesInfo typesInfo) {
base.CustomizeTypesInfo(typesInfo);
var memberInfos = typesInfo.PersistentTypes.SelectMany(info => info.OwnMembers);
foreach (var memberInfo in memberInfos) {
HandleCustomAttribute(memberInfo, typesInfo);
}
}
开发者ID:aries544,项目名称:eXpand,代码行数:7,代码来源:CustomAttibutesController.cs
示例9: CustomizeTypesInfo
public override void CustomizeTypesInfo(ITypesInfo typesInfo) {
base.CustomizeTypesInfo(typesInfo);
new FullTextContainsFunction().Register();
if (Application != null && Application.Security != null) {
CreatePessimisticLockingField(typesInfo);
}
}
开发者ID:aries544,项目名称:eXpand,代码行数:7,代码来源:XpandSystemModule.cs
示例10: CreateModulesManager
ApplicationModulesManager CreateModulesManager(XafApplication application, string configFileName, string assembliesPath, ITypesInfo typesInfo) {
if (!string.IsNullOrEmpty(configFileName)) {
bool isWebApplicationModel = string.Compare(Path.GetFileNameWithoutExtension(configFileName), "web", true) == 0;
if (string.IsNullOrEmpty(assembliesPath)) {
assembliesPath = Path.GetDirectoryName(configFileName);
if (isWebApplicationModel) {
assembliesPath = Path.Combine(assembliesPath + "", "Bin");
}
}
}
ReflectionHelper.AddResolvePath(assembliesPath);
try {
var result = new ApplicationModulesManager(new ControllersManager(), assembliesPath);
if (application != null) {
foreach (ModuleBase module in application.Modules) {
result.AddModule(module);
}
result.Security = application.Security;
}
if (!string.IsNullOrEmpty(configFileName)) {
result.AddModuleFromAssemblies(GetModulesFromConfig(application));
}
if (typesInfo is TypesInfo)
XpandModuleBase.Dictiorary = ((TypesInfo)typesInfo).Source.XPDictionary;
result.Load(typesInfo);
return result;
} finally {
XpandModuleBase.Dictiorary = XafTypesInfo.XpoTypeInfoSource.XPDictionary;
ReflectionHelper.RemoveResolvePath(assembliesPath);
}
}
开发者ID:gvilas,项目名称:eXpand,代码行数:33,代码来源:ModelLoader.cs
示例11: CreateDesignTimeCollection
protected void CreateDesignTimeCollection(ITypesInfo typesInfo, Type classType, string propertyName) {
XPClassInfo info = XafTypesInfo.XpoTypeInfoSource.XPDictionary.GetClassInfo(classType);
if (info.FindMember(propertyName) == null) {
info.CreateMember(propertyName, typeof(XPCollection), true);
typesInfo.RefreshInfo(classType);
}
}
开发者ID:krazana,项目名称:eXpand,代码行数:7,代码来源:XpandModuleBase.cs
示例12: CreateMember
void CreateMember(ITypesInfo typesInfo, IRoleTypeProvider roleTypeProvider, SecurityOperationsAttribute attribute) {
var roleTypeInfo = typesInfo.FindTypeInfo(roleTypeProvider.RoleType);
if (roleTypeInfo.FindMember(attribute.OperationProviderProperty) == null) {
var memberInfo = roleTypeInfo.CreateMember(attribute.OperationProviderProperty, typeof(SecurityOperationsEnum));
memberInfo.AddAttribute(new RuleRequiredFieldAttribute());
}
}
开发者ID:Raoulwe,项目名称:eXpand,代码行数:7,代码来源:XpandSecurityModule.cs
示例13: CustomizeTypesInfo
public override void CustomizeTypesInfo(ITypesInfo typesInfo) {
base.CustomizeTypesInfo(typesInfo);
if (Application != null) {
typesInfo.FindTypeInfo(typeof(ShowInAnalysisPermission)).FindMember("ControllerType").AddAttribute(new VisibleInDetailViewAttribute(false));
typesInfo.FindTypeInfo(typeof(PivotSettingsPermission)).FindMember("ControllerType").AddAttribute(new VisibleInDetailViewAttribute(false));
}
}
开发者ID:jdraith1,项目名称:eXpand,代码行数:7,代码来源:XpandPivotChartModule.cs
示例14: CreateObjectSpaceCore
protected override IObjectSpace CreateObjectSpaceCore(UnitOfWork unitOfWork, ITypesInfo typesInfo) {
var objectSpace = new XpandObjectSpace(new XpandUnitOfWork(unitOfWork.DataLayer), typesInfo) {
AsyncServerModeSourceResolveSession = AsyncServerModeSourceResolveSession,
AsyncServerModeSourceDismissSession = AsyncServerModeSourceDismissSession
};
return objectSpace;
}
开发者ID:krazana,项目名称:eXpand,代码行数:7,代码来源:XpandObjectSpaceProvider.cs
示例15: CreateApplicationModulesManager
public ApplicationModulesManager CreateApplicationModulesManager(XafApplication application, string configFileName, string assembliesPath, ITypesInfo typesInfo) {
if (!string.IsNullOrEmpty(configFileName)) {
bool isWebApplicationModel =
String.Compare(Path.GetFileNameWithoutExtension(configFileName), "web", StringComparison.OrdinalIgnoreCase) == 0;
if (string.IsNullOrEmpty(assembliesPath)) {
assembliesPath = Path.GetDirectoryName(configFileName);
if (isWebApplicationModel) {
assembliesPath = Path.Combine(assembliesPath + "", "Bin");
}
}
}
ReflectionHelper.AddResolvePath(assembliesPath);
try {
var result = new ApplicationModulesManager(new ControllersManager(), assembliesPath);
foreach (ModuleBase module in application.Modules) {
result.AddModule(module);
}
result.Security = application.Security;
if (GetModulesFromConfig(application) != null) {
result.AddModuleFromAssemblies(GetModulesFromConfig(application));
}
return result;
} finally {
ReflectionHelper.RemoveResolvePath(assembliesPath);
}
}
开发者ID:kevin3274,项目名称:eXpand,代码行数:26,代码来源:ModelApplicationBuilder.cs
示例16: CreateMemberInfo
private XPCustomMemberInfo CreateMemberInfo(ITypesInfo typesInfo, IMemberInfo memberInfo, ProvidedAssociationAttribute providedAssociationAttribute, AssociationAttribute associationAttribute) {
var typeToCreateOn = getTypeToCreateOn(memberInfo, associationAttribute);
if (typeToCreateOn == null)
throw new NotImplementedException();
XPCustomMemberInfo xpCustomMemberInfo;
if (!(memberInfo.IsList) || (memberInfo.IsList && providedAssociationAttribute.RelationType == RelationType.ManyToMany)) {
xpCustomMemberInfo = typesInfo.CreateCollection(
typeToCreateOn,
memberInfo.Owner.Type,
associationAttribute.Name,
XpandModuleBase.Dictiorary,
providedAssociationAttribute.ProvidedPropertyName ?? memberInfo.Owner.Type.Name + "s", false);
} else {
xpCustomMemberInfo = typesInfo.CreateMember(
typeToCreateOn,
memberInfo.Owner.Type,
associationAttribute.Name,
XpandModuleBase.Dictiorary,
providedAssociationAttribute.ProvidedPropertyName ?? memberInfo.Owner.Type.Name, false);
}
if (!string.IsNullOrEmpty(providedAssociationAttribute.AssociationName) && memberInfo.FindAttribute<AssociationAttribute>() == null)
memberInfo.AddAttribute(new AssociationAttribute(providedAssociationAttribute.AssociationName));
typesInfo.RefreshInfo(typeToCreateOn);
return xpCustomMemberInfo;
}
开发者ID:gvilas,项目名称:eXpand,代码行数:28,代码来源:ProvidedAssociationsController.cs
示例17: CustomizeTypesInfo
public override void CustomizeTypesInfo(ITypesInfo typesInfo) {
base.CustomizeTypesInfo(typesInfo);
InitializeInstanceXafApplicationManager();
var type = (BaseInfo)typesInfo.FindTypeInfo(typeof(IModelMember)).FindMember("Type");
var attribute = type.FindAttribute<ReadOnlyAttribute>();
if (attribute != null)
type.RemoveAttribute(attribute);
}
开发者ID:gvilas,项目名称:eXpand,代码行数:8,代码来源:XpandModuleBase.cs
示例18: SetAdditionalExportedTypesProperties
private void SetAdditionalExportedTypesProperties(ITypesInfo typesInfo)
{
foreach (var type in AdditionalExportedTypes)
{
var typeInfo = (TypeInfo)typesInfo.FindTypeInfo(type);
typeInfo.IsDomainComponent = true;
}
}
开发者ID:derjabkin,项目名称:eXpand,代码行数:8,代码来源:Module.cs
示例19: CreateMembers
void CreateMembers(ITypesInfo typesInfo) {
foreach (FilterProviderBase provider in FilterProviderManager.Providers) {
FilterProviderBase provider1 = provider;
foreach (ITypeInfo typeInfo in typesInfo.PersistentTypes.Where(typeInfo => TypeMatch(typeInfo, provider1))) {
CreateMember(typeInfo, provider);
}
}
}
开发者ID:noxe,项目名称:eXpand,代码行数:8,代码来源:FilterDataStoreModuleBase.cs
示例20: CustomizeTypesInfo
public override void CustomizeTypesInfo(ITypesInfo typesInfo) {
base.CustomizeTypesInfo(typesInfo);
var memberInfos = typesInfo.PersistentTypes.SelectMany(info => info.OwnMembers);
foreach (var memberInfo in memberInfos) {
HandleNumericFormatAttribute(memberInfo);
HandleSequencePropertyAttribute(memberInfo);
}
}
开发者ID:gvilas,项目名称:eXpand,代码行数:8,代码来源:CustomAttibutesController.cs
注:本文中的ITypesInfo类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论