Ejemplo 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.
            ProviderRole aRole = (ProviderRole)untyped;
            _entityRole.Name = aRole._entityRole.Name;
            _entityRole.Description = aRole._entityRole.Description;

            _entityObject = _entityRole;
            return true;
        }
        */
        //=========================================================
        // PRIVATE
        //=========================================================
        protected ProviderRole(Role aRole)
            : base(aRole)
        {
        }
Ejemplo n.º 2
0
 protected override void EntityClear()
 {
     _entityRole = new Role();
     _entityRole.SystemCreateDate = new DateTime();
     _entityRole.SystemEditDate = new DateTime();
     _entityRole.GroupId = null;
     _entityRole.Name = string.Empty;
     _entityRole.Description = null;
 }
 /// <summary>
 /// Create a new Role 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="name">Initial value of the Name property.</param>
 public static Role CreateRole(global::System.Int64 id, global::System.DateTime systemCreateDate, global::System.DateTime systemEditDate, global::System.String name)
 {
     Role role = new Role();
     role.Id = id;
     role.SystemCreateDate = systemCreateDate;
     role.SystemEditDate = systemEditDate;
     role.Name = name;
     return role;
 }
Ejemplo n.º 4
0
 protected static ProviderRole _EntityToProvider(Role roleEntity)
 {
     return new ProviderRole(roleEntity);
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Roles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToRoles(Role role)
 {
     base.AddObject("Roles", role);
 }