This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Migration:AutomaticMigrationsEnabled = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private List<T> SetMyList (List<T> list) | |
| { | |
| MyClass my = new MyClass(); | |
| my.anything = “anything in string”; | |
| my.theNumber = 666; | |
| list.Add(my); | |
| return my; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List<MyClass> list = new List<MyClass>(); | |
| SqlDataReader reader = cmd.ExecuteReader(); | |
| while (reader.Read()) | |
| { | |
| MyClass class = new MyClass(); | |
| class.name = reader["name"].ToString(); | |
| class.number = Convert.Toint32(reader["number"]); | |
| list.Add(class); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Install-Package EntityFramework |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @model List<mayogaxdevblog.Models.Post> | |
| @{ | |
| Layout = null; | |
| } | |
| <?xml version="1.0" encoding="utf-8"?> | |
| <feed xmlns="http://www.w3.org/2005/Atom"> | |
| <title>MayogaX dev blog</title> | |
| <link href="http://dev.mayogax.me/" /> | |
| <link href="http://feeds.feedburner.com/mayogaxdevblog/" rel="self" /> | |
| @foreach(mayogaxdevblog.Models.Post post in Model) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Manga | |
| { | |
| public int Id { get; set; } | |
| public string Title { get; set; } | |
| [Column(TypeName = "smallDateTime")] | |
| public String Date { get; set; } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Database.DefaultConnectionFactory = new SqlCeConnectionFactory("System.Data.SqlServerCe.4.0"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| INSERT INTO [__MigrationHistory] | |
| ([MigrationId], [CreatedOn], [Model], [ProductVersion]) | |
| VALUES ('201202161546124_initial', '2012-02-16T15:55:56.252Z', | |
| [big-ass hash you don’t need to see], '4.3.0') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Inicialização do contexto: | |
| private DataContex db = new DataContex("Data Source=C:\\Users\\priscila.sato\\Documents\\DBFile.sdf;"); | |
| //Método de construção na classe de contexto | |
| public DataContex(string MangaString) | |
| : base(MangaString) | |
| { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <configuration> | |
| <configSections> | |
| <sectionGroup name="system.webServer"> | |
| <sectionGroup name="rewrite"> | |
| <section name="rewriteMaps" overrideModeDefault="Allow" /> | |
| <section name="rules" overrideModeDefault="Allow" /> | |
| </sectionGroup> | |
| </sectionGroup> | |
| </configSections> |