{"id":26051321,"url":"https://github.com/hoowc/vb_01","last_synced_at":"2026-06-05T11:31:39.827Z","repository":{"id":280922090,"uuid":"943621206","full_name":"HooWC/VB_01","owner":"HooWC","description":"VB Database Connection","archived":false,"fork":false,"pushed_at":"2025-03-06T02:16:29.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T03:24:16.386Z","etag":null,"topics":["sql-server","vb-net","visual-basic"],"latest_commit_sha":null,"homepage":"","language":"Visual Basic .NET","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HooWC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-06T02:15:42.000Z","updated_at":"2025-03-06T02:17:30.000Z","dependencies_parsed_at":"2025-03-06T03:24:22.154Z","dependency_job_id":"6f2695c3-da8e-49ba-b19d-354269ab38b5","html_url":"https://github.com/HooWC/VB_01","commit_stats":null,"previous_names":["hoowc/vb_01"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HooWC%2FVB_01","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HooWC%2FVB_01/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HooWC%2FVB_01/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HooWC%2FVB_01/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HooWC","download_url":"https://codeload.github.com/HooWC/VB_01/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242496612,"owners_count":20138439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["sql-server","vb-net","visual-basic"],"created_at":"2025-03-08T04:10:15.369Z","updated_at":"2026-06-05T11:31:39.815Z","avatar_url":"https://github.com/HooWC.png","language":"Visual Basic .NET","funding_links":[],"categories":[],"sub_categories":[],"readme":"```\nEmployeeManagementSystem/\n│── EmployeeManagementSystem.sln  # 解决方案文件\n│── App.config                     # 数据库连接字符串配置\n│── Models/\n│   ├── Employee.vb                 # 员工类\n│   ├── AppDbContext.vb             # 数据库上下文 (LINQ to SQL)\n│── Forms/\n│   ├── Form1.vb                    # 主要 UI 界面 (员工管理)\n│── Data/\n│   ├── EmployeeRepository.vb       # 业务逻辑层 (CRUD 操作)\n│── bin/                            # 编译后的文件\n│── obj/                            # 编译时的临时文件\n```\n\n### 安装 Entity Framework\n\n```\nCREATE DATABASE EmployeeDB;\nGO\n\nUSE EmployeeDB;\nGO\n\nCREATE TABLE Employees (\n    EmployeeID INT IDENTITY(1,1) PRIMARY KEY,\n    Name NVARCHAR(100) NOT NULL,\n    Department NVARCHAR(100) NOT NULL,\n    Salary DECIMAL(10,2) NOT NULL\n);\n```\n\n```\n\u003cconfiguration\u003e\n  \u003cconnectionStrings\u003e\n    \u003cadd name=\"EmployeeDB\"\n         connectionString=\"Server=LAPTOP-75SCS0RS\\SQLEXPRESS;Database=EmployeeDB;Trusted_Connection=True;TrustServerCertificate=True\"\n         providerName=\"System.Data.SqlClient\"/\u003e\n  \u003c/connectionStrings\u003e\n\u003c/configuration\u003e\n```\n\n```\nImports System.Data.Entity\n\nPublic Class AppDbContext\n    Inherits DbContext\n\n    Public Sub New()\n        MyBase.New(\"name=EmployeeDB\") ' 读取 App.config 的连接字符串\n    End Sub\n\n    Public Property Employees As DbSet(Of Employee)\nEnd Class\n```\n\n### ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoowc%2Fvb_01","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoowc%2Fvb_01","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoowc%2Fvb_01/lists"}