当前位置: 首页>>代码示例>>C#>>正文


C# DataReader.GetString方法代码示例

本文整理汇总了C#中DataReader.GetString方法的典型用法代码示例。如果您正苦于以下问题:C# DataReader.GetString方法的具体用法?C# DataReader.GetString怎么用?C# DataReader.GetString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DataReader的用法示例。


在下文中一共展示了DataReader.GetString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Role_Map

 /// <summary>
 /// 角色实体数据映射
 /// </summary>
 /// <param name="reader"></param>
 /// <returns></returns>
 public static TeamRole Role_Map(DataReader reader)
 {
     TeamRole role = new TeamRole(reader.GetString("RoleID"), reader.GetStringNullable("RoleName"))
     {
         RoleDescription = reader.GetString("Description")
     };
     return role;
 }
开发者ID:bzure,项目名称:BSA.Net,代码行数:13,代码来源:RoleRepository.cs

示例2: UsersInRoles_Map

 /// <summary>
 /// 角色实体数据映射
 /// </summary>
 /// <param name="reader"></param>
 /// <returns></returns>
 private static UserRoleMap UsersInRoles_Map(DataReader reader)
 {
     UserRoleMap usersinroles = new UserRoleMap()
     {
         UserID = reader.GetString("UserID"),
         RoleID = reader.GetString("RoleID")
     };
     return usersinroles;
 }
开发者ID:bzure,项目名称:BSA.Net,代码行数:14,代码来源:UsersInRolesRepository.cs

示例3: UserBind_Map

 /// <summary>
 /// 角色实体数据映射
 /// </summary>
 /// <param name="reader"></param>
 /// <returns></returns>
 public static UserBind UserBind_Map(DataReader reader)
 {
     return new UserBind()
     {
         ID = reader.GetString("ID"),
         UserID = reader.GetString("UserID"),
         BindID = reader.GetStringNullable("BindID"),
         BindProvider = reader.GetStringNullable("BindProvider"),
     };
 }
开发者ID:bzure,项目名称:BSA.Net,代码行数:15,代码来源:UserBindRepository.cs

示例4: Resource_Map

 /// <summary>
 /// 角色实体数据映射
 /// </summary>
 /// <param name="reader"></param>
 /// <returns></returns>
 public static DroitResource Resource_Map(DataReader reader)
 {
     DroitResource resource = new DroitResource(reader.GetString("ResourceID"))
     {
         ResourceName = reader.GetString("ResourceName"),
         RoleID = reader.GetString("RoleID"),
         RightValue = reader.GetInt("RightValue"),
         State = reader.GetInt("State")
     };
     return resource;
 }
开发者ID:bzure,项目名称:BSA.Net,代码行数:16,代码来源:ResourceRepository.cs

示例5: PasswordToken_Map

 /// <summary>
 /// 客户实体数据映射
 /// </summary>
 /// <param name="reader"></param>
 /// <returns></returns>
 public static PasswordToken PasswordToken_Map(DataReader reader)
 {
     PasswordToken PasswordToken = new PasswordToken
     {
         CreateTime = reader.GetDateTime("CreateTime"),
         Expire = reader.GetDateTime("Expire"),
         Token = reader.GetString("Token"),
         UserName = reader.GetString("UserName")
     };
     return PasswordToken;
 }
开发者ID:bzure,项目名称:BSA.Net,代码行数:16,代码来源:PasswordTokenRepository.cs

示例6: BzureUser_Map

 /// <summary>
 /// 用户实体数据映射
 /// </summary>
 /// <param name="reader"></param>
 /// <returns></returns>
 public static BzureUser BzureUser_Map(DataReader reader)
 {
     BzureUser BzureUser = new BzureUser(reader.GetString("UserID"), reader.GetString("UserName"))
     {
         EMail = reader.GetStringNullable("EMail"),
         Password = reader.GetStringNullable("Password"),
         OpenID = reader.GetStringNullable("OpenID"),
         State = reader.GetInt("State"),
         RoleValue = reader.GetInt("RoleValue"),
         NickName = reader.GetStringNullable("NickName")
     };
     return BzureUser;
 }
开发者ID:bzure,项目名称:BSA.Net,代码行数:18,代码来源:UserRepository.cs

示例7: Populate

        /// <summary>
        /// Método utilizado para preencher esta instância com os dados do dataReader
        /// </summary>
        /// <param name="dataReader">DataReader com os dados que deverão ser passados para esta instância</param>
        public override void Populate(DataReader dataReader)
        {
            base.Populate(dataReader);

            #region Desta Classe
            IP = dataReader.GetString("p_IP");
            NomeMaquina = dataReader.GetString("p_NomeMaquina");
            DataHoraEvento = dataReader.GetDateTime("p_DataHoraEvento");
            TipoEvento = dataReader.GetEnum<TipoEvento>("p_TipoEvento");
            Evento = dataReader.GetString("p_Evento");
            Descricao = dataReader.GetString("p_Descricao");
            #endregion
        }
开发者ID:njmube,项目名称:openposbr,代码行数:17,代码来源:LogBase.cs

示例8: Populate

        /// <summary>
        /// Método utilizado para preencher esta instância com os dados do dataReader
        /// </summary>
        /// <param name="dataReader">DataReader com os dados que deverão ser passados para esta instância</param>
        public override void Populate(DataReader dataReader)
        {
            #region base
            base.Populate(dataReader);
            #endregion

            #region desta classe
            Nome = dataReader.GetValue<string>("p_Nome");
            Observacao = dataReader.GetValue<string>("p_Observacao");
            NumeroCaixa = dataReader.GetString("p_NumeroCaixa");
            Replicado = dataReader.GetBoolean("p_Replicado");
            Ativo = dataReader.GetBoolean("p_Ativo");
            #endregion
        }
开发者ID:njmube,项目名称:openposbr,代码行数:18,代码来源:PDV.cs

示例9: Populate

        /// <summary>
        /// Método utilizado para preencher esta instância com os dados do dataReader
        /// </summary>
        /// <param name="dataReader">DataReader com os dados que deverão ser passados para esta instância</param>
        public override void Populate(DataReader dataReader)
        {
            #region base
            base.Populate(dataReader);
            #endregion

            NumeroSerieECF = dataReader.GetString("p_NumeroSerieECF");
            NumeroOrdemECF = dataReader.GetInt("p_NumOrdemECF");
            CCF = dataReader.GetInt("p_CCF");
            COOFinal = dataReader.GetInt("p_COOFinal");
            CRZ = dataReader.GetInt("p_CRZ");
            CRO = dataReader.GetInt("p_CRO");
            ValorGrandeTotalECF = dataReader.GetDouble("p_ValorGTECF");
            //Troco = dataReader.GetDouble("p_Troco");
            EmissorCupom = PessoaBase.Create(dataReader.GetString("p_GUIDEmissorCupom"), true);
            AbreFechaCaixa = AbreFechaCaixaBase.Create(dataReader.GetString("p_GUIDAbreFechaCaixa"));

            #region Movimento vinculado
            //ILanSK sk = new LanSK(GUID, GetTableHash());

            //if(!sk.IsNullOrEmpty())
            //    MovimentoVinculado = MovimentoBase.Create(sk.Filho) as IMovimento;
            #endregion
        }
开发者ID:njmube,项目名称:openposbr,代码行数:28,代码来源:VendaCFBase.cs

示例10: _StringMap

 static string _StringMap(DataReader reader)
 {
     return reader.GetString("RoleID");
 }
开发者ID:bzure,项目名称:BSA.Net,代码行数:4,代码来源:UsersInRolesRepository.cs

示例11: Populate

        /// <summary>
        /// Método utilizado para preencher esta instância com os dados do dataReader
        /// </summary>
        /// <param name="dataReader">DataReader com os dados que deverão ser passados para esta instância</param>
        public override void Populate(DataReader dataReader)
        {
            #region base
            base.Populate(dataReader);
            #endregion

            #region desta classe
            Descricao = dataReader.GetValue<string>("p_Descricao");
            CFOP = new CFOP(dataReader.GetString("p_GUIDCFOP"));
            #endregion

            #region Filtros
            Filtros = new CFOPRegraFiltro().Find<ICFOPRegraFiltro, ICFOPRegra>(new Where{
                {"GUIDCFOPRegra", GUID} }, this);
            #endregion
        }
开发者ID:njmube,项目名称:openposbr,代码行数:20,代码来源:CFOPRegraBase.cs

示例12: Populate

        /// <summary>
        /// Método utilizado para preencher esta instância com os dados do dataReader
        /// </summary>
        /// <param name="dataReader">DataReader com os dados que deverão ser passados para esta instância</param>
        public override void Populate(DataReader dataReader)
        {
            #region base
            base.Populate(dataReader);
            #endregion

            #region desta classe
            Impressora = new Impressora(dataReader.GetValue<string>("p_GUIDImpressora"));
            Indice = dataReader.GetValue<string>("p_Indice");
            Descricao = dataReader.GetString("p_Descricao");
            Tipo = (Enuns.Faturamento.Lancamento.Tipo)dataReader.GetInt("p_Tipo");
            #endregion
        }
开发者ID:njmube,项目名称:openposbr,代码行数:17,代码来源:ImpressoraTotNaoFiscal.cs

示例13: Customer_Map

 private Customer Customer_Map(DataReader reader)
 {
     return new Customer
            {
                ID = reader.GetGuid("ID"),
                FirstName = reader.GetString("FirstName"),
                LastName = reader.GetString("LastName"),
                Birthday = reader.GetDateTime("Birthday"),
                Height = reader.GetIntNullable("Height"),
                Weight = reader.GetIntNullable("Weight")
            };
 }
开发者ID:cwbrandsma,项目名称:FluentAdo,代码行数:12,代码来源:CustomerRepository.cs

示例14: Populate

 /// <summary>
 /// popula os dados do objeto
 /// </summary>
 /// <param name="rs">datareader contendo os dados a serem populados</param>		
 public override void Populate(DataReader rs)
 {
     base.Populate(rs);
     Pai = rs.GetString("p_GUIDLanPai");
     Filho = rs.GetString("p_GUIDLanFilho");
     GUIDSK = rs.GetString("p_GUIDSK");
     TableHash = rs.GetInt("p_TableHash");
 }
开发者ID:njmube,项目名称:openposbr,代码行数:12,代码来源:LanSK.cs

示例15: Populate

 /// <summary>
 /// popula os dados do objeto
 /// </summary>
 /// <param name="rs">datareader contendo os dados a serem populados</param>		
 public override void Populate(DataReader rs)
 {
     base.Populate(rs);
     ItemPai = rs.GetString("p_GUIDLanItemPai");
     ItemFilho = rs.GetString("p_GUIDLanItemFilho");
     SKPai = rs.GetString("p_GUIDLanSKPai");
     SKFilho = rs.GetString("p_GUIDLanSKFilho");
     TableHash = rs.GetInt("p_TableHash");
 }
开发者ID:njmube,项目名称:openposbr,代码行数:13,代码来源:LanSKItem.cs


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