Mini Kabibi Habibi
<?xml version="1.0" encoding="utf-8"?><Database Name="VideoPortal_Data" Class="VideoPortalDataContext" xmlns="http://schemas.microsoft.com/linqtosql/dbml/2007">
<Connection Mode="WebSettings" ConnectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\VideoPortal_Data.mdf;Integrated Security=True;User Instance=True" SettingsObjectName="System.Configuration.ConfigurationManager.ConnectionStrings" SettingsPropertyName="VideoPortal_DataConnectionString" Provider="System.Data.SqlClient" />
<Table Name="dbo.Comment" Member="Comments">
<Type Name="Comment">
<Column Name="ID" Type="System.Int32" DbType="Int NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="UserName" Type="System.String" DbType="VarChar(MAX)" CanBeNull="true" />
<Column Name="AddedAt" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="Text" Type="System.String" DbType="Text" CanBeNull="true" UpdateCheck="Never" />
<Column Name="VideoID" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Column Name="UserAvatarID" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Association Name="Video_Comment" Member="Video" ThisKey="VideoID" OtherKey="ID" Type="Video" IsForeignKey="true" />
</Type>
</Table>
<Table Name="dbo.Videos" Member="Videos">
<Type Name="Video">
<Column Name="ID" Type="System.Int32" DbType="Int NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="Title" Type="System.String" DbType="VarChar(MAX)" CanBeNull="true" />
<Column Name="Rating" Type="System.Double" DbType="Float" CanBeNull="true" />
<Column Name="CreationDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="ViewCount" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Column Name="EmbeddedCode" Type="System.String" DbType="Text" CanBeNull="true" UpdateCheck="Never" />
<Column Name="Product" Type="System.String" DbType="VarChar(MAX)" CanBeNull="true" />
<Column Name="Description" Type="System.String" DbType="Text" CanBeNull="true" UpdateCheck="Never" />
<Association Name="Video_Comment" Member="Comments" ThisKey="ID" OtherKey="VideoID" Type="Comment" />
<Association Name="Video_TagVideoRelation" Member="TagVideoRelations" ThisKey="ID" OtherKey="VideoID" Type="TagVideoRelation" />
</Type>
</Table>
<Table Name="dbo.Tags" Member="Tags">
<Type Name="Tag">
<Column Name="ID" Type="System.Int32" DbType="Int NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="Name" Type="System.String" DbType="VarChar(MAX) NOT NULL" CanBeNull="false" />
<Association Name="Tag_TagVideoRelation" Member="TagVideoRelations" ThisKey="ID" OtherKey="TagID" Type="TagVideoRelation" />
</Type>
</Table>
<Table Name="dbo.TagVideoRelations" Member="TagVideoRelations">
<Type Name="TagVideoRelation">
<Column Name="ID" Type="System.Int32" DbType="Int NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="VideoID" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Column Name="TagID" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Association Name="Tag_TagVideoRelation" Member="Tag" ThisKey="TagID" OtherKey="ID" Type="Tag" IsForeignKey="true" />
<Association Name="Video_TagVideoRelation" Member="Video" ThisKey="VideoID" OtherKey="ID" Type="Video" IsForeignKey="true" />
</Type>
</Table>
</Database>