• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# BinAff类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中BinAff的典型用法代码示例。如果您正苦于以下问题:C# BinAff类的具体用法?C# BinAff怎么用?C# BinAff使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



BinAff类属于命名空间,在下文中一共展示了BinAff类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: CreateDataObject

 protected override BinAff.Core.Data CreateDataObject(DataRow dr, BinAff.Core.Data data)
 {
     Data dt = data as Data;
     dt.Amount = Convert.IsDBNull(dr["Amount"]) ? 0.00 : Convert.ToDouble(dr["Amount"]);
     dt.IsPercentage = Convert.IsDBNull(dr["IsPercentage"]) ? false : Convert.ToBoolean(dr["IsPercentage"]);
     return dt;
 }
开发者ID:BinAff,项目名称:School,代码行数:7,代码来源:Dao.cs


示例2: CreateDataObject

 protected override BinAff.Core.Data CreateDataObject(DataRow dr, BinAff.Core.Data data)
 {
     Data dt = data as Data;
     dt.Id = Convert.IsDBNull(dr["Id"]) ? 0 : Convert.ToInt64(dr["Id"]);
     dt.Number = Convert.IsDBNull(dr["Number"]) ? String.Empty : Convert.ToString(dr["Number"]);
     return dt;
 }
开发者ID:BinAff,项目名称:School,代码行数:7,代码来源:Dao.cs


示例3: CreateDataObject

 protected override BinAff.Core.Data CreateDataObject(DataRow dr, BinAff.Core.Data data)
 {
     Data dt = data as Data;
     dt.Name = Convert.IsDBNull(dr["Name"]) ? String.Empty : Convert.ToString(dr["Name"]);
     dt.IsPercentage = Convert.IsDBNull(dr["IsPercentage"]) ? false : Convert.ToBoolean(dr["IsPercentage"]);
     return dt;
 }
开发者ID:BinAff,项目名称:School,代码行数:7,代码来源:Dao.cs


示例4: CreateDataObject

        protected override BinAff.Core.Data CreateDataObject(DataRow dr, BinAff.Core.Data data)
        {
            Data dt = data as Data;
            dt.Id = Convert.IsDBNull(dr["Id"]) ? 0 : Convert.ToInt64(dr["Id"]);
            dt.StudentId = Convert.IsDBNull(dr["StudentId"]) ? String.Empty : Convert.ToString(dr["StudentId"]);
            dt.FirstName = Convert.IsDBNull(dr["FirstName"]) ? String.Empty : Convert.ToString(dr["FirstName"]);
            dt.MiddleName = Convert.IsDBNull(dr["MiddleName"]) ? String.Empty : Convert.ToString(dr["MiddleName"]);
            dt.LastName = Convert.IsDBNull(dr["LastName"]) ? String.Empty : Convert.ToString(dr["LastName"]);
            dt.RollNumber = Convert.IsDBNull(dr["RollNumber"]) ? Convert.ToInt16(0) : Convert.ToInt16(dr["RollNumber"]);
            //dt.Photo = Convert.IsDBNull(dr["Photo"]) ? Convert.ToByte(null) : Convert.ToByte(dr["Photo"]);

            if (dr["CategoryId"] != null)
            {
                dt.Category = new Category.Data
                {
                    Id = Convert.IsDBNull(dr["CategoryId"]) ? 0 : Convert.ToInt64(dr["CategoryId"])
                };
            }
            if (dr["StandardId"] != null)
            {
                dt.Standard = new Sparkle.School.Component.Standard.Data
                {
                    Id = Convert.IsDBNull(dr["StandardId"]) ? 0 : Convert.ToInt64(dr["StandardId"])
                };
            }
            if (dr["SectionId"] != null)
            {
                dt.Section = new Sparkle.School.Component.Section.Data
                {
                    Id = Convert.IsDBNull(dr["SectionId"]) ? 0 : Convert.ToInt64(dr["SectionId"])
                };
            }
            return dt;
        }
开发者ID:BinAff,项目名称:School,代码行数:34,代码来源:Dao.cs


示例5: CreateDataObject

        protected override BinAff.Core.Data CreateDataObject(DataRow dr, BinAff.Core.Data data)
        {
            Data dt = data as Data;
            dt.Installment = Convert.IsDBNull(dr["Installment"]) ? 0 : Convert.ToInt32(dr["Installment"]);
            dt.Amount = Convert.IsDBNull(dr["Amount"]) ? 0.00 : Convert.ToDouble(dr["Amount"]);

            return dt;
        }
开发者ID:BinAff,项目名称:School,代码行数:8,代码来源:Dao.cs


示例6: CreateDataObject

 protected override BinAff.Core.Data CreateDataObject(DataRow dr, BinAff.Core.Data data)
 {
     Data dt = data as Data;
     dt.Name = Convert.IsDBNull(dr["Name"]) ? String.Empty : Convert.ToString(dr["Name"]);
     dt.TotalMarks = Convert.IsDBNull(dr["TotalMarks"]) ? 0 : Convert.ToInt32(dr["TotalMarks"]);
     dt.PassMarks = Convert.IsDBNull(dr["PassMarks"]) ? 0 : Convert.ToInt32(dr["PassMarks"]);
     return dt;
 }
开发者ID:BinAff,项目名称:School,代码行数:8,代码来源:Dao.cs


示例7: Convert

 public override BinAff.Core.Data Convert(BinAff.Facade.Library.Dto dto)
 {
     Dto dt = dto as Dto;
     return new Comp.Data
     {
         Id = dt.Id,
         Name = dt.Name,
     };
 }
开发者ID:BinAff,项目名称:School,代码行数:9,代码来源:Server.cs


示例8: CreateDataObject

        protected override BinAff.Core.Data CreateDataObject(DataRow dr, BinAff.Core.Data data)
        {
            Data dt = data as Data;
            dt.Id = Convert.IsDBNull(dr["Id"]) ? 0 : Convert.ToInt64(dr["Id"]);
            dt.Name = Convert.IsDBNull(dr["Name"]) ? String.Empty : Convert.ToString(dr["Name"]);
            dt.CurrentFlag = Convert.IsDBNull(dr["CurrentFlag"]) ? false : Convert.ToBoolean(dr["CurrentFlag"]);

            return dt;
        }
开发者ID:BinAff,项目名称:School,代码行数:9,代码来源:Dao.cs


示例9: CreateDataObject

 protected override BinAff.Core.Data CreateDataObject(DataRow dr, BinAff.Core.Data data)
 {
     Data dt = data as Data;
     dt.Id = Convert.IsDBNull(dr["Id"]) ? 0 : Convert.ToInt64(dr["Id"]);
     dt.Name = Convert.IsDBNull(dr["Name"]) ? String.Empty : Convert.ToString(dr["Name"]);
     dt.Code = Convert.IsDBNull(dr["Code"]) ? String.Empty : Convert.ToString(dr["Code"]);
     dt.IsdCode = Convert.IsDBNull(dr["IsdCode"]) ? Convert.ToInt16(0) : Convert.ToInt16(dr["IsdCode"]);
     return dt;
 }
开发者ID:BinAff,项目名称:School,代码行数:9,代码来源:Dao.cs


示例10: Convert

 public override BinAff.Core.Data Convert(BinAff.Facade.Library.Dto dto)
 {
     Dto dt = dto as Dto;
     return new Comp.Data
     {
         Id = dt.Id,
         Standard = new Standard.Server(null).Convert(dt.Standard) as Sparkle.School.Component.Standard.Data,
         Section = new Section.Server(null).Convert(dt.Section) as Sparkle.School.Component.Section.Data
     };
 }
开发者ID:BinAff,项目名称:School,代码行数:10,代码来源:Server.cs


示例11: CreateDataObject

 protected override BinAff.Core.Data CreateDataObject(DataRow dr, BinAff.Core.Data data)
 {
     Data dt = data as Data;
     dt.Id = Convert.IsDBNull(dr["Id"]) ? 0 : Convert.ToInt64(dr["Id"]);
     dt.Name = Convert.IsDBNull(dr["Name"]) ? String.Empty : Convert.ToString(dr["Name"]);
     dt.Logo = Convert.IsDBNull(dr["Logo"]) ? String.Empty : Convert.ToString(dr["Logo"]);
     dt.AccreditationNumber = Convert.IsDBNull(dr["AccreditationNumber"]) ? String.Empty : Convert.ToString(dr["AccreditationNumber"]);
     dt.Tan = Convert.IsDBNull(dr["Tan"]) ? String.Empty : Convert.ToString(dr["Tan"]);
     return dt;
 }
开发者ID:BinAff,项目名称:School,代码行数:10,代码来源:Dao.cs


示例12: Convert

 public override BinAff.Core.Data Convert(BinAff.Facade.Library.Dto dto)
 {
     Dto dt = dto as Dto;
     return new Comp.Data
     {
         Id = dt.Id,
         Number = dt.Number,
         Country = new Country.Server(null).Convert(dt.Country) as CountryComp.Data,
     };
 }
开发者ID:BinAff,项目名称:School,代码行数:10,代码来源:Server.cs


示例13: CreateDataObject

 protected override BinAff.Core.Data CreateDataObject(DataRow dr, BinAff.Core.Data data)
 {
     Data dt = data as Data;
     dt.Date = Convert.IsDBNull(dr["Date"]) ? DateTime.MinValue : Convert.ToDateTime(dr["Date"]);
     dt.Installment = Convert.IsDBNull(dr["Installment"]) ? 0 : Convert.ToInt32(dr["Installment"]);
     dt.FeeAmount = Convert.IsDBNull(dr["FeeAmount"]) ? 0 : Convert.ToDouble(dr["FeeAmount"]);
     dt.FineAmount = Convert.IsDBNull(dr["FineAmount"]) ? 0 : Convert.ToDouble(dr["FineAmount"]);
     dt.TotalAmount = Convert.IsDBNull(dr["TotalAmount"]) ? 0 : Convert.ToDouble(dr["TotalAmount"]);
     dt.AmountPaid = Convert.IsDBNull(dr["AmountPaid"]) ? 0 : Convert.ToDouble(dr["AmountPaid"]);
     return dt;
 }
开发者ID:BinAff,项目名称:School,代码行数:11,代码来源:Dao.cs


示例14: Convert

 public override BinAff.Core.Data Convert(BinAff.Facade.Library.Dto dto)
 {
     Dto dt = dto as Dto;
     return new Comp.Data
     {
         Id = dt.Id,
         Name = dt.Name,
         FeeGroup = new Fee.Group.Server(null).Convert(dt.FeeGroup) as FeeGroupComp.Data,
         FineDefination = new Fine.Definition.Server(null).Convert(dt.FineDefination) as FineDefComp.Data,
         IsActive = dt.IsActive,
     };
 }
开发者ID:BinAff,项目名称:School,代码行数:12,代码来源:Server.cs



注:本文中的BinAff类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Binary类代码示例发布时间:2022-05-24
下一篇:
C# BigNumber类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap