本文整理汇总了C#中Serialization.Add方法的典型用法代码示例。如果您正苦于以下问题:C# Serialization.Add方法的具体用法?C# Serialization.Add怎么用?C# Serialization.Add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Serialization
的用法示例。
在下文中一共展示了Serialization.Add方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddSerialization
protected virtual void AddSerialization(
Serialization.SerializationMembersList list,
string memberType, string memberName,
string backingStoreType, string backingStoreName)
{
if (list != null)
{
var xmlname = memberName;
list.Add("Serialization.CompoundObjectSerialization", disableExport ? Serialization.SerializerType.Binary : Serialization.SerializerType.All,
this.xmlNamespace, xmlname, memberType, memberName, backingStoreType, backingStoreName);
}
}
示例2: AddSerialization
protected virtual void AddSerialization(Serialization.SerializationMembersList list, string name)
{
if (list != null)
list.Add(disableExport ? Serialization.SerializerType.Binary : Serialization.SerializerType.All, modulenamespace, name, referencedType, ApplyResultExpression());
}
示例3: AddSerialization
protected virtual void AddSerialization(Serialization.SerializationMembersList list, string sourceMember, string targetMember, string targetGuidMember)
{
if (list != null)
{
if (relDataTypeExportable && !disableExport)
{
list.Add("Serialization.ObjectReferencePropertySerialization", Serialization.SerializerType.ImportExport, moduleNamespace, name, sourceMember, targetMember, targetGuidMember);
}
list.Add("Serialization.ObjectReferencePropertySerialization",
Templates.Serialization.SerializerType.Service, moduleNamespace, name, sourceMember, targetMember, targetGuidMember);
}
}
示例4: AddSerialization
protected override void AddSerialization(Serialization.SerializationMembersList list, string name)
{
if (list != null)
{
if (HasDefaultValue)
{
list.Add("Serialization.SimplePropertyWithDefaultSerialization",
disableExport ? Templates.Serialization.SerializerType.Binary : Serialization.SerializerType.All,
_prop.Module.Namespace,
name,
type,
backingName,
IsSetFlagName);
}
else
{
list.Add("Serialization.SimplePropertySerialization",
disableExport ? Serialization.SerializerType.Binary : Serialization.SerializerType.All,
_prop.Module.Namespace,
name,
type,
backingName);
}
}
}
示例5: AddSerialization
protected virtual void AddSerialization(Serialization.SerializationMembersList list, string name)
{
if (list != null)
list.Add(disableExport ? Serialization.SerializerType.Binary : Serialization.SerializerType.All, modulenamespace, name, type, backingName);
}
示例6: AddSerialization
protected virtual void AddSerialization(Serialization.SerializationMembersList list, string memberName, bool eagerLoading)
{
if (list != null && eagerLoading)
{
list.Add("Serialization.EagerLoadingSerialization", Serialization.SerializerType.Binary, null, null, memberName, true, rel.GetRelationType() == RelationType.n_m);
}
}