コード例 #1
0
        public void NUnit_DynamicColumn_Domain_Get()
        {
            Sys_DynamicColumnServices service = new Sys_DynamicColumnServices();
            var repo = service.GetAllUseEntity <Sys_DynamicColumn>(ref status);;

            Console.Write("Total Record: " + repo.Count());
        }
コード例 #2
0
        //// GET api/<controller>
        ///// <summary>
        ///// Lấy tất cả dữ liệu
        ///// </summary>
        ///// <returns></returns>
        public IEnumerable <Sys_DynamicColumnModel> Get()
        {
            string status  = string.Empty;
            var    service = new Sys_DynamicColumnServices();
            var    list    = service.GetAllUseEntity <Sys_DynamicColumnEntity>(ref status);

            return(list.Select(item => new Sys_DynamicColumnModel
            {
                ID = item.ID,
                ColumnName = item.ColumnName,
                Code = item.Code,
                Status = item.Status,
                DataType = item.DataType,
                Length = item.Length,
                TableName = item.TableName,
                Comment = item.Comment
            }));
        }
コード例 #3
0
 public void NUnit_DynamicColumn_Domain_Get()
 {
     Sys_DynamicColumnServices service = new Sys_DynamicColumnServices();
     var repo = service.GetAllUseEntity<Sys_DynamicColumn>(ref status); ;
     Console.Write("Total Record: " + repo.Count());
 }