This is one of the best educational tutorials about n-tier apps on internet. Thanks for uploading!!!
@sdmunoz8 жыл бұрын
Nice video, very useful for new developers.
@foxlearn8 жыл бұрын
Thank you so much :)
@ermac99007 жыл бұрын
Hello fox learn I want to ask about the display data from more than one table to be used in printing queries on report viewer Thank you
@brazo9811 ай бұрын
Nice Turorial thx a lot for you support.
@mrt79483 жыл бұрын
super example on using binding source. more example on binding source please with drop down list, master detail relations pls.
@davidcedeno8786 жыл бұрын
What is the instrument called 21:12?
@2005Azm7 жыл бұрын
Wonderfull ! Thank you so much for sharing such a knowledge!
@alicanhizlan45367 жыл бұрын
very good. thanks for everything
@dzconcept8 жыл бұрын
NICE HOW I CAN ADD TO THIS PROJECT A MASTER /DETAIL RELATION ? thanks
@foxlearn8 жыл бұрын
Ok, Thank you for your suggestion. I'll make demo soon
@ChristianHaugland748 жыл бұрын
Very Nice videos, like your learning style. Could you make more VB.Net videos? It is hard to find good vb videos.
@foxlearn8 жыл бұрын
OK. Thank you for your suggestion. I'll make soon
@ntieng8 жыл бұрын
I have used the above code in MySQL. My table called Currency contains two properties, Unit and Rate but only unit is saving. Rate remains 0. I realize that my BindingSource.Current takes only Unit instead of taking both values.
@torchok190819867 жыл бұрын
Hi, do you have some videos with EF Core and SQLite ? This would be really helpful. Like always great video.
@foxlearn7 жыл бұрын
I haven't got, i'll upload soon
@МаксИльин-в3ф8 жыл бұрын
Do you have a lesson where the same principle, but the connection is made through MySqlConnection?
@foxlearn8 жыл бұрын
No, I upload soon
@МаксИльин-в3ф8 жыл бұрын
Fox Learn ty
@safiullah.amarkhail7 жыл бұрын
Hi. l designed a database, l want to know that, can we save the data in multi tables by clicking on one savebutton?
@foxlearn7 жыл бұрын
Yes, You can do that. You can view this video kzbin.info/www/bejne/rXLJd2CDq8qAf80 to know how to do that. Thank you
@serkankisacik6 жыл бұрын
How is the search done here?
@codebuster27165 жыл бұрын
Bravo!!
@foxlearn5 жыл бұрын
Thank you !
@1995thebama8 жыл бұрын
Could you make a video (Insert, Update,Delete) with Entity Framework and Stored Procedures?
@foxlearn8 жыл бұрын
OK. Thank you for your suggestion. I'll make soon
@1995thebama8 жыл бұрын
Fox Learn oh thanks :)
@tuandieu45236 жыл бұрын
Can you do a tutorial about searching using EF - 3Tier ? i really need it. Thx btw. This video is very useful
@foxlearn6 жыл бұрын
Ok, thank you for your suggestions
@foxlearn6 жыл бұрын
kzbin.info/www/bejne/hJTFo2iXraiUmK8 .I uploaded
@NoThisIsntMyChannel5 жыл бұрын
When I click "Save" on frmAddEditConatct nothing happens... I have revised my code multiple times and it's exactly as in the video. Do you have a link to download the full project?
@foxlearn5 жыл бұрын
Please check your code again. i'll upload to my site soon. thank you !
@MrNvQuy7 жыл бұрын
good guide !
@foxlearn7 жыл бұрын
Thank you :)
@MrNvQuy7 жыл бұрын
You can make one video about CRUD Many to Many using EF. Example , I have three table are: Students(StudenID, StudentName); Courses(CourseID, CourseName) and StudentCourse(StudenID,CourseID). Students has many Courses and Courses has many Student. When i design in SQL server, i change many to many equal Students has one to many StudentCourse and Course has one to many StudentCourse=> I have 3 table in sql server. But in visual 2015 i create ado.net ef data created 2 table Students and Courses . linq to sql do not support many to many relationship. I can not create query CRUD join 3 tables. You can help me this problem! thank you so much. Connection String : Student.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations; namespace EFManyToMany { public class Student { [Key] public int StudenID { get; set; } public string StudentName { get; set; } public IList Courses { get; set; } } } Course.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.Entity; using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations; namespace EFManyToMany { public class Course { [Key] public int CourseID { get; set; } public string CourseName { get; set; } public IList Students { get; set; } } } EmployeeDBContext.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.Entity; namespace EFManyToMany { public class EmployeeDBContext: DbContext { public EmployeeDBContext() : base("EmployeeDBContext") { Database.SetInitializer(new MigrateDatabaseToLatestVersion("EmployeeDBContext")); } public DbSet Courses { get; set; } public DbSet Students { get; set; } protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Entity() .HasMany(t => t.Courses) .WithMany(t => t.Students) .Map(m => { m.ToTable("StudentCourses"); m.MapLeftKey("StudentID"); m.MapRightKey("CourseID"); }); base.OnModelCreating(modelBuilder); } } } Thêm dữ liệu vào các bảng: USE Sample GO INSERT INTO dbo.Courses (CourseName) VALUES ( N'C#') INSERT INTO dbo.Courses (CourseName) VALUES ( N'ASP.NET') INSERT INTO dbo.Courses (CourseName) VALUES ( N'SQL Server') INSERT INTO dbo.Courses (CourseName) VALUES ( N'WCF') INSERT INTO dbo.Students ( StudentName ) VALUES ( N'Mike') INSERT INTO dbo.Students ( StudentName ) VALUES ( N'John') INSERT INTO dbo.StudentCourses VALUES ( N'1', N'1') INSERT INTO dbo.StudentCourses VALUES ( N'1', N'2') INSERT INTO dbo.StudentCourses VALUES ( N'2', N'1') INSERT INTO dbo.StudentCourses VALUES ( N'2', N'2') INSERT INTO dbo.StudentCourses VALUES ( N'2', N'3') Hiển thị dữ liệu: Cách 1: using (EmployeeDBContext context = new EmployeeDBContext()) { dataGridView1.DataSource = (from s in context.Students from c in context.Courses select new { StudentName = s.StudentName, CourseName = c.CourseName }).ToList(); } Kết quả: Cách 2: EmployeeDBContext context = new EmployeeDBContext(); var stu_id = 1; var query = from s in context.Students where s.Courses.Any(c => c.CourseID == stu_id) select s; dataGridView1.DataSource = query.ToList(); Kết quả:
@hichamkhadija13707 жыл бұрын
Hi Again , i can't find a Remove() , Add() ,Entry and Find method , i already add a reference System.data.entity , can you help me please ??
@foxlearn7 жыл бұрын
I think you should create a model context, then you can find Add, Remove, Entry... method
@darpanrelan45438 жыл бұрын
Dear sir,,What is code of save button ??
@datatabor7 жыл бұрын
It has no code!
@edwinfredymoralesmorales35697 жыл бұрын
Why?? i ask same, i filled all textboxt in add form then i can't save nothing, what's the code
@MrNvQuy7 жыл бұрын
if add one Users table have relationship many Contacts. You show how to CRUD data to two table. thank ! One problem DataAccessLayer includes InterfaceRepository but RepositoryLayer is beetwen DataLayer and BussinessLayer-> project structure is : Model, Repositories, Bussiness and Presentatiion Layer. Link project of fox learn i rebuild www.mediafire.com/file/478ji41wkozc9kc/EF3Tiers.rar
@danish97427 жыл бұрын
Why don't you make video for separate select update delete and insert buttons operations. You are always creating data grid view with these operations
@foxlearn7 жыл бұрын
Thank you for your suggestion
@danish97427 жыл бұрын
Will be waiting for that
@pablo1beroiza5 жыл бұрын
Excelent tutorials! Could you send me the project please?
@hichamkhadija13707 жыл бұрын
please how find you a references EntityFramwork.SqlServer.dll i can't find it ?! URGENT
@foxlearn7 жыл бұрын
Hi, You can install Entity Framework from nuget
@hichamkhadija13707 жыл бұрын
can you send me the link please
@hichamkhadija13707 жыл бұрын
Is Ok i find it thank u (y)
@junarjacob98588 жыл бұрын
i like this tut, thank you, more... can you add the source code link please just like other channel do ;-)
@foxlearn8 жыл бұрын
Hi, What's your email? thank you
@junarjacob98588 жыл бұрын
artc.jacob@gmail.com
@mohammadaziz1507 жыл бұрын
code pleaes
@foxlearn7 жыл бұрын
Sent. Please check your email. Thank you
@GonzoGonschi8 жыл бұрын
Hey man! what about a video with MySql, Entity Framework, MVVM in WPF and a trivial, step by step example that also the numbskulls among finally understand how to implement the freaking ViewModel. No-one has done this yet, so why don't you give it a try ;)
@foxlearn8 жыл бұрын
Ok. Thank you for your suggestion
@l3ecauseOfYou8 жыл бұрын
Could you make a video (Insert, Update,Delete) with Entity Framework and Code First?