Exemple #1
0
        public virtual (Result result, Persistence.Table.Sucursales datas) Sucursales_Refresh(int maxdepth = 1, int top = 0, Persistence.Query.Sucursal query = null)
        {
            if (this.Id != null)
            {
                var queryselect = query ?? new Persistence.Query.Sucursal();

                queryselect.IdEmpresa = (this.Id, WhereOperator.Equals);

                var select = queryselect.Select(maxdepth, top);

                Sucursales = (Persistence.Table.Sucursales) new Persistence.Table.Sucursales().Load(select.datas);

                return(select.result, _sucursales);
            }

            return(new Result()
            {
                Messages = new List <(ResultCategory, string, string)>()
                {
                    (ResultCategory.Error, "Sucursales_Refresh", $"Id in {this?.Description?.Name} cannot be null")
                }
            }, null);
Exemple #2
0
 public Sucursales(Persistence.Table.Sucursales datas)
     : base(datas)
 {
 }