本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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,
};
}
示例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;
}
示例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;
}
示例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
};
}
示例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;
}
示例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,
};
}
示例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;
}
示例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,
};
}