随笔分类 -  C#和MVC

枚举类enum C#数据库应用程序案例
摘要:面向对象编程,实际上是面向类的编程开发。把类中的成员掌握了,那么去写功能相对就easy多了! 开发的核心所在。 是去处理类中的数据值内容,或者是通过数据库获取到的值数据内容,或者是第三方软件获取到的数据值内容。进行一个逻辑处理的过程。 using System; using System.Colle 阅读全文
posted @ 2022-01-17 16:35 优敏行 阅读(53) 评论(0) 推荐(0) 编辑
摘要:using System; namespace If { class Program { static void Main(string[] args) { //判断从控制台输入的数字是否为偶数。 Console.WriteLine("请输入一个整数:"); // 将从控制台输入的值转换为int 的 阅读全文
posted @ 2022-01-13 18:46 优敏行 阅读(183) 评论(0) 推荐(0) 编辑
摘要:这还谈不上需求吧, 或者是最简单需求,基础功能的学会。yes,best 简单功能的学会以及熟练起来 电脑类文件 using System; using System.Collections.Generic; using System.Text; namespace 类的3大成员 { //类的成员:在 阅读全文
posted @ 2022-01-12 15:12 优敏行 阅读(40) 评论(0) 推荐(0) 编辑
摘要:类定义的具体语法形式如下。 类的访问修饰符 修饰符 类名 { 类的成员 } 其中: 类的访问修饰符:用于设定对类的访问限制,包括 public、internal 或者不写,用 internal 或者不写时代表只能在当前项目中访问类;public 则代表可以在任何项目中访问类。 修饰符:修饰符是对类本 阅读全文
posted @ 2021-12-29 09:53 优敏行 阅读(38) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; namespace MyWebService { /// <summary> 阅读全文
posted @ 2021-12-17 16:24 优敏行 阅读(36) 评论(0) 推荐(0) 编辑
摘要:前端代码 课程只有一部分,所以影响了后面的完整测试。修改前端代码后,可以完整展示 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeWeb2.aspx.cs" Inherits="Asp.NetDemo2.Demo05.DeWeb 阅读全文
posted @ 2021-12-13 15:37 优敏行 阅读(34) 评论(0) 推荐(0) 编辑
摘要:数据库比较简单的了, 就是创建表就OK了。 entity框架类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; // 阅读全文
posted @ 2021-11-30 17:47 优敏行 阅读(37) 评论(0) 推荐(0) 编辑
摘要:效果: 首先是创建项目的选择。 该加的筛选条件,完全可以加上的啊。然后选择对应的创建项目就行了。 控制器层 controller view 视图层 阅读全文
posted @ 2021-11-30 14:39 优敏行 阅读(41) 评论(0) 推荐(0) 编辑
摘要:using System; namespace ConsoleLearn1 { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); // 变量 //定义一个变量a,并且初始化,赋值数 阅读全文
posted @ 2021-11-29 13:40 优敏行 阅读(51) 评论(0) 推荐(0) 编辑
摘要:C# using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace WebAppMV 阅读全文
posted @ 2021-11-24 15:51 优敏行 阅读(33) 评论(0) 推荐(0) 编辑
摘要:using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace WebAppMVC.C 阅读全文
posted @ 2021-11-24 15:22 优敏行 阅读(26) 评论(0) 推荐(0) 编辑
摘要:using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace WebAppMVC.C 阅读全文
posted @ 2021-11-23 17:18 优敏行 阅读(64) 评论(0) 推荐(0) 编辑
摘要:逻辑层查询代码,已经非常现实的逻辑代码了。 具备高度实用性。 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; // 阅读全文
posted @ 2021-11-22 15:05 优敏行 阅读(38) 评论(0) 推荐(0) 编辑
摘要:using System; namespace ConsoleMoney1 { class Program { static void Main(string[] args) { //Console.WriteLine("Hello World!"); string sum;//合计总和 strin 阅读全文
posted @ 2021-11-17 18:06 优敏行 阅读(32) 评论(0) 推荐(0) 编辑
摘要:#region 变量算法 计算程序 int a = 3; int b = 11; int c = 10; int sum = a + b + c; Console.WriteLine("早中午晚上3个数的和是:" + sum +"元"); #endregion 写在主函数内的程序。最简单的计算程序 阅读全文
posted @ 2021-11-12 15:45 优敏行 阅读(40) 评论(0) 推荐(0) 编辑
摘要:程序的最基础结构。 using System;// 1 命名空间 namespace ConsoleTest1 { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); Console 阅读全文
posted @ 2021-11-12 14:20 优敏行 阅读(40) 评论(0) 推荐(0) 编辑
摘要:1 就是一行代码的事情,代表了一个逻辑。一个逻辑的理解。 赋值变量u,等于1. 循环条件 变量小于9, 变量自增。 自增到大于9时,停止循环。程序结束。 for(int u=1;u<9;u++) { Console.WriteLine("for循环练习程序{0}",u); } 效果: 阅读全文
posted @ 2021-10-05 11:22 优敏行 阅读(67) 评论(0) 推荐(0) 编辑
摘要:#region for循环 for(int i =0; i<10;i++) { Console.WriteLine("for循环基础语法程序{0}",i); } #endregion 效果; 阅读全文
posted @ 2021-10-04 16:00 优敏行 阅读(47) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Linq; namespace ConsoleIf { class Program { static void Main(string[] args) { // Console.WriteLine("Hello World!"); // 1 需求 阅读全文
posted @ 2021-10-03 12:28 优敏行 阅读(353) 评论(0) 推荐(0) 编辑
摘要:扩展训练: 1 同样的程序,可以用继承的方式去写这个代码,用继承的方式,如何写出来 this 代码? #region 变量程序练习 买票排号程序 string name; // 乘客姓名 int age;// 年龄的变量定义 int price;// 票价 string sex;//性别 strin 阅读全文
posted @ 2021-10-01 20:45 优敏行 阅读(49) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示