本文整理汇总了C#中IPersistenceObject类的典型用法代码示例。如果您正苦于以下问题:C# IPersistenceObject类的具体用法?C# IPersistenceObject怎么用?C# IPersistenceObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IPersistenceObject类属于命名空间,在下文中一共展示了IPersistenceObject类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ApplyChangesFrom
public override void ApplyChangesFrom(IPersistenceObject obj)
{
base.ApplyChangesFrom(obj);
var other = (AnotherTest)obj;
var otherImpl = (AnotherTestMemoryImpl)obj;
var me = (AnotherTest)this;
}
示例2: ApplyChangesFrom
public override void ApplyChangesFrom(IPersistenceObject obj)
{
base.ApplyChangesFrom(obj);
var other = (RoleMembership)obj;
var otherImpl = (RoleMembershipMemoryImpl)obj;
var me = (RoleMembership)this;
}
示例3: ApplyChangesFrom
public override void ApplyChangesFrom(IPersistenceObject obj)
{
base.ApplyChangesFrom(obj);
var other = (PropertyTestBase)obj;
var otherImpl = (PropertyTestBaseEfImpl)obj;
var me = (PropertyTestBase)this;
}
示例4: ApplyChangesFrom
public override void ApplyChangesFrom(IPersistenceObject obj)
{
base.ApplyChangesFrom(obj);
var other = (EnumParameter)obj;
var otherImpl = (EnumParameterEfImpl)obj;
var me = (EnumParameter)this;
this._fk_Enumeration = otherImpl._fk_Enumeration;
}
示例5: ApplyChangesFrom
public override void ApplyChangesFrom(IPersistenceObject obj)
{
base.ApplyChangesFrom(obj);
var other = (Task)obj;
var otherImpl = (TaskMemoryImpl)obj;
var me = (Task)this;
me.Aufwand = other.Aufwand;
me.ChangedOn = other.ChangedOn;
me.CreatedOn = other.CreatedOn;
me.DatumBis = other.DatumBis;
me.DatumVon = other.DatumVon;
me.ExportGuid = other.ExportGuid;
me.Name = other.Name;
this._fk_ChangedBy = otherImpl._fk_ChangedBy;
this._fk_CreatedBy = otherImpl._fk_CreatedBy;
this._fk_Projekt = otherImpl._fk_Projekt;
}
示例6: TestPhoneCompoundObjectMemoryImpl
public TestPhoneCompoundObjectMemoryImpl(IPersistenceObject parent, string property) : this(null, parent, property) {} // TODO: pass parent's lazyCtx
示例7: ApplyChangesFrom
public override void ApplyChangesFrom(IPersistenceObject obj)
{
base.ApplyChangesFrom(obj);
var other = (DateTimeProperty)obj;
var otherImpl = (DateTimePropertyMemoryImpl)obj;
var me = (DateTimeProperty)this;
me.DateTimeStyle = other.DateTimeStyle;
}
示例8: ApplyChangesFrom
public override void ApplyChangesFrom(IPersistenceObject obj)
{
base.ApplyChangesFrom(obj);
var other = (RelationEnd)obj;
var otherImpl = (RelationEndMemoryImpl)obj;
var me = (RelationEnd)this;
me.ChangedOn = other.ChangedOn;
me.CreatedOn = other.CreatedOn;
me.ExportGuid = other.ExportGuid;
me.HasPersistentOrder = other.HasPersistentOrder;
me.Multiplicity = other.Multiplicity;
me.RoleName = other.RoleName;
this._fk_AParent = otherImpl._fk_AParent;
this._fk_BParent = otherImpl._fk_BParent;
this._fk_ChangedBy = otherImpl._fk_ChangedBy;
this._fk_CreatedBy = otherImpl._fk_CreatedBy;
this._fk_Navigator = otherImpl._fk_Navigator;
this._fk_Type = otherImpl._fk_Type;
}
示例9: ApplyChangesFrom
public override void ApplyChangesFrom(IPersistenceObject obj)
{
base.ApplyChangesFrom(obj);
var other = (Module)obj;
var otherImpl = (ModuleMemoryImpl)obj;
var me = (Module)this;
me.ChangedOn = other.ChangedOn;
me.CreatedOn = other.CreatedOn;
me.Description = other.Description;
me.ExportGuid = other.ExportGuid;
me.Name = other.Name;
me.Namespace = other.Namespace;
me.SchemaName = other.SchemaName;
this._fk_ChangedBy = otherImpl._fk_ChangedBy;
this._fk_CreatedBy = otherImpl._fk_CreatedBy;
}
示例10: ApplyChangesFrom
public override void ApplyChangesFrom(IPersistenceObject obj)
{
base.ApplyChangesFrom(obj);
var other = (GroupMembership)obj;
var otherImpl = (GroupMembershipNHibernateImpl)obj;
var me = (GroupMembership)this;
this._fk_Group = otherImpl._fk_Group;
}
示例11: ApplyChangesFrom
public override void ApplyChangesFrom(IPersistenceObject obj)
{
base.ApplyChangesFrom(obj);
var other = (DoubleProperty)obj;
var otherImpl = (DoublePropertyNHibernateImpl)obj;
var me = (DoubleProperty)this;
}
示例12: ApplyChangesFrom
public override void ApplyChangesFrom(IPersistenceObject obj)
{
base.ApplyChangesFrom(obj);
var other = (ClientReadOnlyConstraint)obj;
var otherImpl = (ClientReadOnlyConstraintNHibernateImpl)obj;
var me = (ClientReadOnlyConstraint)this;
}
示例13: ApplyChangesFrom
public override void ApplyChangesFrom(IPersistenceObject obj)
{
base.ApplyChangesFrom(obj);
var other = (ObjectReferenceProperty)obj;
var otherImpl = (ObjectReferencePropertyNHibernateImpl)obj;
var me = (ObjectReferenceProperty)this;
me.EagerLoading = other.EagerLoading;
me.IsInlineEditable = other.IsInlineEditable;
this._fk_RelationEnd = otherImpl._fk_RelationEnd;
}
示例14: ApplyChangesFrom
public override void ApplyChangesFrom(IPersistenceObject obj)
{
base.ApplyChangesFrom(obj);
var other = (ConstraintInvocation)obj;
var otherImpl = (ConstraintInvocationEfImpl)obj;
var me = (ConstraintInvocation)this;
me.ExportGuid = other.ExportGuid;
me.MemberName = other.MemberName;
this._fk_Implementor = otherImpl._fk_Implementor;
}
示例15: ApplyChangesFrom
public override void ApplyChangesFrom(IPersistenceObject obj)
{
base.ApplyChangesFrom(obj);
var other = (DeactivatableTestObject)obj;
var otherImpl = (DeactivatableTestObjectEfImpl)obj;
var me = (DeactivatableTestObject)this;
me.IsDeactivated = other.IsDeactivated;
me.Name = other.Name;
}