Esempio n. 1
0
        /* TODO: revisit all copy functions
        public override bool Copy(Provider untyped)
        {
            //Never copy over the id, otherwise we would be creating
            //a pseudo-reference copy, which we don't want.
            //Do not copy over the system times and only the business logic
            //times since the system times are specific to a given instance.
            ProviderGroup aGroup = (ProviderGroup)untyped;
            _entityGroup.CreateDate = aGroup._entityGroup.CreateDate;
            _entityGroup.EditDate = aGroup._entityGroup.EditDate;
            _entityGroup.Name = aGroup._entityGroup.Name;
            _entityGroup.IsHidden = aGroup._entityGroup.IsHidden;
            _entityGroup.IsBanned = aGroup._entityGroup.IsBanned;

            _entityObject = _entityGroup;
            return true;
        }*/
        //=========================================================
        // PRIVATE
        //=========================================================
        protected ProviderGroup(Group aGroup)
            : base(aGroup)
        {
        }
Esempio n. 2
0
 protected override void EntityClear()
 {
     _entityGroup = new Group();
     _entityGroup.SystemCreateDate = new DateTime();
     _entityGroup.SystemEditDate = new DateTime();
     _entityGroup.CreateDate = new DateTime();
     _entityGroup.EditDate = new DateTime();
     _entityGroup.Id = -1;
     _entityGroup.Name = String.Empty;
     _entityGroup.IsHidden = false;
     _entityGroup.IsBanned = false;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Groups EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToGroups(Group group)
 {
     base.AddObject("Groups", group);
 }
Esempio n. 4
0
 protected static ProviderGroup _EntityToProvider(Group groupEntity)
 {
     return new ProviderGroup(groupEntity);
 }
 /// <summary>
 /// Create a new Group object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="systemCreateDate">Initial value of the SystemCreateDate property.</param>
 /// <param name="systemEditDate">Initial value of the SystemEditDate property.</param>
 /// <param name="createDate">Initial value of the CreateDate property.</param>
 /// <param name="editDate">Initial value of the EditDate property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="isHidden">Initial value of the IsHidden property.</param>
 /// <param name="isBanned">Initial value of the IsBanned property.</param>
 public static Group CreateGroup(global::System.Int64 id, global::System.DateTime systemCreateDate, global::System.DateTime systemEditDate, global::System.DateTime createDate, global::System.DateTime editDate, global::System.String name, global::System.Boolean isHidden, global::System.Boolean isBanned)
 {
     Group group = new Group();
     group.Id = id;
     group.SystemCreateDate = systemCreateDate;
     group.SystemEditDate = systemEditDate;
     group.CreateDate = createDate;
     group.EditDate = editDate;
     group.Name = name;
     group.IsHidden = isHidden;
     group.IsBanned = isBanned;
     return group;
 }