Exemplo n.º 1
0
        public (EnumMethodState state, string msg) InsertTest()
        {
            using (var efr = new EFHelper <OracleContext>())
            {
                var userinfo = new UserInfo
                {
                    ID         = DateTime.Now.Millisecond,
                    ACCOUNT    = "zhangsan",
                    CREATEDATE = DateTime.Now,
                    NAME       = "Yaojie",
                    STATUS     = "A"
                };

                return(efr.BulkInsert(new List <UserInfo> {
                    userinfo
                }, seq: "USERINFO_SEQ"));
            }
        }